sendin nagios core logs to the logserver

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: sendin nagios core logs to the logserver

Post by benhank »

ok original file was 90 mb so I cut out sections
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: sendin nagios core logs to the logserver

Post by cdienger »

Was that 90mb when compressed? I'm not finding the events in the snippets provided so if you could provide the full log that would be best.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: sendin nagios core logs to the logserver

Post by benhank »

man do I feel dumb , here is the file
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: sendin nagios core logs to the logserver

Post by benhank »

Oh I failed to mention that I have two servers that are configured to send the logs from nagios and the os.
Both servers are sending the logs from the OS but im getting no data from nagios parsed and displayed in the nagios dashboards.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: sendin nagios core logs to the logserver

Post by cdienger »

The events are not going through the filters for some reason that isn't made immediately clear. Let's get a copy of the settings index from the NLS machine and I'll be able to take a closer look at the config. This can be gathered by running:

Code: Select all

curl -XPOST http://localhost:9200/nagioslogserver/_export?path=/tmp/nagioslogserver.tar.gz
The file it creates is /tmp/nagioslogserver.tar.gz. Please PM this file to me.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: sendin nagios core logs to the logserver

Post by benhank »

sent
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: sendin nagios core logs to the logserver

Post by cdienger »

The issue here is that the "syslog" inputs are actually using tcp or udp inputs. For example, the default syslog input looks like:

Code: Select all

syslog {
    type => 'syslog'
    port => 5544
}
But your config uses:

Code: Select all

tcp {
    type => 'syslog'
    port => 5544
}
udp {
 type => 'syslog'
    port => 5544
}
I think the 'nagios_core' program name is not getting parsed as a result which is allowing the logs to bypass the filter. Try changing the first line of the filter config from:

Code: Select all

if [program] == 'nagios_core' {
to:

Code: Select all

if [host] == 'xxx.xxx.xxx.xxx' and [message] =~ "nagios_core {
where xxx.xxx.xxx.xxx is the IP address of your XI server.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: sendin nagios core logs to the logserver

Post by benhank »

ok but before I do it that verbatim or is the "~" a typo? just being sure man =D
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: sendin nagios core logs to the logserver

Post by benhank »

ok the apply config worked. now Im just waiting to see if any data comes in
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: sendin nagios core logs to the logserver

Post by benhank »

ok after making the adjustments the dashboards are still blank
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked