Inputs with specific TAG(Type)

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
carlos.mangini
Posts: 12
Joined: Thu Jun 01, 2017 9:33 am

Inputs with specific TAG(Type)

Post by carlos.mangini »

Folks,

I currently separate the logs I receive on specific ports. Each entry represents a customer.
I would like to know if it is possible to put a TAG (Type) in the inputs of each port. This TAG would be unique for each
Port, containing the company name of this client, field that would like to use it for query.


Thank you all.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Inputs with specific TAG(Type)

Post by cdienger »

That will be okay. The default config even has a couple examples demonstrating this:

Code: Select all

tcp {
    type => 'import_raw'
    tags => 'import_raw'
    port => 2056
}
and

Code: Select all

tcp {
    type => 'import_json'
    tags => 'import_json'
    port => 2057
    codec => json
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
carlos.mangini
Posts: 12
Joined: Thu Jun 01, 2017 9:33 am

Re: Inputs with specific TAG(Type)

Post by carlos.mangini »

Excellent!
Thanks for the fast feedback!
Locked