New NLS system, not receiving IIS logs

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
mobitorIT
Posts: 3
Joined: Wed May 18, 2016 3:21 pm

New NLS system, not receiving IIS logs

Post by mobitorIT »

Hello Nagios team,

We have setup a new Nagios Log Server today and created the below conf file (based on the template provided by Nagios). We're trying to collect IIS log files from our host XXX.XXX.XXX.XXX and have not received them. We *are* receiving System Event Log files from the host successfully just not the IIS log files. Our conf file is below.

We have tried: Stopped/restarting nxlog service many times. Using telnet to successfully confirm that the client has connectivity on port 3515 to the server. Check the nxlog.log for errors and there are none.

Thanks for your guidance.
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: New NLS system, not receiving IIS logs

Post by hsmith »

Is there anything in /var/log/logstash/logstash.log ?

Are you trying to generate new logs? Sometimes the previous logs are not sent. That can be tweaked in NXLog.
Former Nagios Employee.
me.
mobitorIT
Posts: 3
Joined: Wed May 18, 2016 3:21 pm

Re: New NLS system, not receiving IIS logs

Post by mobitorIT »

Not much in the logstash.log -- just two entries from a couple hours ago when we first installed:
{:timestamp=>"2016-05-18T12:30:54.531000-0700", :message=>"Error: No config files found: /usr/local/nagioslogserver/logstash/etc/conf.d/*\nCan you make sure this path is a logstash config file?"}
{:timestamp=>"2016-05-18T12:30:54.558000-0700", :message=>"You may be interested in the '--configtest' flag which you can\nuse to validate logstash's configuration before you choose\nto restart a running system."}

Yes, we are successfully generating lots of events in the u_in160518.log file which Nagios is watching.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: New NLS system, not receiving IIS logs

Post by hsmith »

How are you searching for them on the dashboard? Can I see screenshots?
Former Nagios Employee.
me.
mobitorIT
Posts: 3
Joined: Wed May 18, 2016 3:21 pm

Re: New NLS system, not receiving IIS logs

Post by mobitorIT »

Mainly searching by timestamp. It is clearly not displaying log entries that we are seeing in the IIS log.

Another definitive test is searching by type (see attached) which shows that we only have syslogs and eventlogs -- no other types of logs
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: New NLS system, not receiving IIS logs

Post by Box293 »

Try enabling debug logging to watch what logstash is doing.
Edit the file /etc/init.d/logstash

Find line 63:

Code: Select all

DAEMON_OPTS="agent -f ${LS_CONF_DIR} -l ${LS_LOG_FILE} ${LS_OPTS}"
Insert --debug after agent

Code: Select all

DAEMON_OPTS="agent --debug -f ${LS_CONF_DIR} -l ${LS_LOG_FILE} ${LS_OPTS}"
Save the file and restart logstash

Code: Select all

service logstash restart
Now watch the log:

Code: Select all

tail -f /var/log/logstash/logstash.log
You are going to see a lot of logs, but you are trying to see if the logs are being received.

Remove --debug when done, otherwise a large file will be created.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked