Removing log sources

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Linuxlogger
Posts: 32
Joined: Thu Jun 23, 2016 4:33 pm

Removing log sources

Post by Linuxlogger »

I am attempting to troubleshoot the import of an audit.log file. It doesn't seem to be exporting to NLS, I have some of the same information that is being sent by rsyslog and other logs. How do I remove all log sources from a server so that I can verify that I am receiving the audit.log file.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Removing log sources

Post by rkennedy »

If it's a Windows machine you could run net stop nxlog, and on Linux use service rsyslog stop. This will stop logs from sending into NLS for the time being.
Former Nagios Employee
Linuxlogger
Posts: 32
Joined: Thu Jun 23, 2016 4:33 pm

Re: Removing log sources

Post by Linuxlogger »

Stopping the rsyslog service only stops the logs from being exported to NLS it does not remove the sources from the NLS forwarding configuration. I want the rsyslog service running so that I can see if a specific audit.log file is being forwarded but want to eliminate the redundancy of log information. So I need the the audit.log and only the audit.log to be forwarded to NLS. Shutting off the rsyslog service doesn't accomplish this. It prevents any and all logs from being sent to the NLS.
Linuxlogger
Posts: 32
Joined: Thu Jun 23, 2016 4:33 pm

Re: Removing log sources

Post by Linuxlogger »

I found what I needed. By moving the 90-nagioslogserver files from the /etc/rsyslog.d/ directory into another directory and restarting the rsyslog service it will stop logging the unwanted files.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Removing log sources

Post by rkennedy »

Ah, I didn't understand properly initially. Sounds like you were able to get it figured out though!

Are we good to mark this thread as resolved?
Former Nagios Employee
Linuxlogger
Posts: 32
Joined: Thu Jun 23, 2016 4:33 pm

Re: Removing log sources

Post by Linuxlogger »

Yes, we can mark this as resolved.

Thanks
Locked