Linux Server - rsyslog issues

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
gehogan3
Posts: 20
Joined: Thu Sep 24, 2015 11:20 am

Linux Server - rsyslog issues

Post by gehogan3 »

Hi Everyone,

First, I am sorry if this has been asked before, but I have been searching through the LS forum and cannot find the answer.

We are testing out Nagios LS and I am setting up a really basic proof-of-concept system.
(Please keep in mind that I came from a Splunk shop, so don't shoot me if I say "other products do this...")

LS build and install was a breeze...5 minutes.

I went to set up a remote box to send some custom logs to the LS...and the only method (out of the box) seems to be to use rsyslog. The problem is that rsyslog provides it's own timestamps, even though there are timestamps (the right ones) in the log file already. Needless to say, when I fired it up, all of the log entries were added to LS with the same time stamp, even though they were from all during the day.

Is there a way to tell rsyslog to use the timestamps from the log file, or to tell LS to ignore the timestamp provided from rsyslog...or use lumberjack? :-)

I also have questions about multiline log entries...but I think I'll tackle that in another thread.

Thanks!
-Emmett
Last edited by hsmith on Thu Oct 08, 2015 4:23 pm, edited 1 time in total.
Reason: No free advertising for the competition!
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Linux Server - rsyslog issues

Post by jolson »

There's no problem using lumberjack, but our wizards all make use of rsyslog, which does include that pesky timestamp as you mentioned (rsyslog uses a standard syslog format).

If you'd prefer to use rsyslog, I can take a look to see if there's a configuration setting that will remove the syslog timestamping. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked