input application logs to NLS and forwarding to a storage

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
lukedevon
Posts: 143
Joined: Sat Mar 24, 2018 9:15 am

input application logs to NLS and forwarding to a storage

Post by lukedevon »

Hi,

I have few linux nodes which are generating thier own application logs.
Log types are more likely to apache/tomcat but quite customized.

1. How can I input such application logs to NLS? I have tested syslog sending to NLS but I want to send these application logs too.

2. I want send those logs to NLS and while sending those logs to NLS, I wanna send them to another centralized log repository. Requirement is, I wanna send those logs to the central log repo without changing the log's source info. (IPs and stuff)

Is there a guide in NLS? can somebody help me please?

Thanks in advance,
Luke.
syang

Re: input application logs to NLS and forwarding to a storag

Post by syang »

Hello Luke,

I can help assist you with this.

1. You can use syslogs to send custom logs. Here is the link. Please edit the ip address with your log server's to set up log files to NLS: http://ip-address-of-log-server/nagiosl ... inux-files

2. I recommend configuring the linux server to send to two locations: one to NLS and the centralized log repo. Go into the /etc/rsyslog.d folder and edit the log file you are interested in sending
to the other repo by adding another @@server2 below the NLS:

Code: Select all

if $programname == 'log name' then @@server2
The log name and @@server2 should be entered with your information.

Please let me know if this works.
Thanks!
lukedevon
Posts: 143
Joined: Sat Mar 24, 2018 9:15 am

Re: input application logs to NLS and forwarding to a storag

Post by lukedevon »

Hi Syang,

Thank you so much for the help. I will try your guide and get back to you ASAP.

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

Re: input application logs to NLS and forwarding to a storag

Post by cdienger »

Let us know once you've had a chance to test :)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked