Syslog Source Output as JSON Format

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
tcsdi
Posts: 46
Joined: Thu Jan 03, 2019 10:07 am

Re: Syslog Source Output as JSON Format

Post by tcsdi »

Hi,

After enabling NetFlow, we are not receiving DNS logs anymore.

Kindly See the picture below

Image

Regards,
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Syslog Source Output as JSON Format

Post by cdienger »

Modify the filter so that dns logs do not hit the kv filter:

Code: Select all

if [type] != 'dnslog'{

kv {
    exclude_keys => [ "host" ]
}
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tcsdi
Posts: 46
Joined: Thu Jan 03, 2019 10:07 am

Re: Syslog Source Output as JSON Format

Post by tcsdi »

Hi Support,


Thank you for reply, For the main issue, we are using Netflow v9 and the logs still look like this:

Image

Another question is, should we use this for input?

udp {

type => 'nflow'

port => 2055
}

Or this?

udp {

type => 'nflow'

port => 2055

codec => netflow {

versions => [9]

Regards,
TCSDI
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Syslog Source Output as JSON Format

Post by cdienger »

Code: Select all

udp {
type => 'nflow'
port => 2059
codec => netflow {
versions => [5,9]
}
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tcsdi
Posts: 46
Joined: Thu Jan 03, 2019 10:07 am

Re: Syslog Source Output as JSON Format

Post by tcsdi »

Hi Cdienger,

We already applied the input and filter but NetFlow logs are still unreadable.

What do we need to make this show Source, Destination, Port, etc.?

We really need to integrate Netflow to our logs.

Image

udp {
type => 'nflow'
port => 2059
codec => netflow {
versions => [5,9]
}
----------------------------------------------------------
if [type] != 'dnslog'{
kv {
exclude_keys => [ "host" ]
}
}

Regards,
Christian
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Syslog Source Output as JSON Format

Post by cdienger »

What do these events look like in the dashboard? Expand an event in the dashboard so that we can see all fields and provide a screenshot.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tcsdi
Posts: 46
Joined: Thu Jan 03, 2019 10:07 am

Re: Syslog Source Output as JSON Format

Post by tcsdi »

Hi,

Please see DNS logs go down after the application of the new filters.

Image

Regards
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Syslog Source Output as JSON Format

Post by cdienger »

What 'new filters'? The previous message indicated that the filters I last suggested were already in the configuration and we were trying to determine what needs to be done to display netflow log properly.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tcsdi
Posts: 46
Joined: Thu Jan 03, 2019 10:07 am

Re: Syslog Source Output as JSON Format

Post by tcsdi »

Hi Cdienger,

We already applied the input and filter but NetFlow logs are still unreadable.

What do we need to make this show Source, Destination, Port, etc.?

We really need to integrate Netflow to our logs.

Image

We use this code that you give it to us.

udp {
type => 'nflow'
port => 2059
codec => netflow {
versions => [5,9]
}
----------------------------------------------------------
if [type] != 'dnslog'{
kv {
exclude_keys => [ "host" ]
}
}

Regards,

(REPOST)
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Syslog Source Output as JSON Format

Post by cdienger »

You're missing a } at the end of your udp netflow input. It should be:

Code: Select all

udp {
type => 'nflow'
port => 2059
codec => netflow {
versions => [5,9]
}
}
Once data is coming in with the above:

Expand an event in the dashboard so that we can see all fields and provide a screenshot. (REPOST)

See the attached screenshots.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked