Hi,
I would like to check to see if I have missed any syslog reports from my
Cisco kit. I have a log in the form of:

2016-02-08T08:47:57.747201+00:00 router.office.eseye.net 19321286:
192.168.107.1: 17326462: Feb  8 2016 08:47:56.746 BST: %
SEC-6-IPACCESSLOGP: blah blah blah

I'm, not currently looking to check the delay from when the log was
generated, to when rsyslog  processed it. This may change when I'm
monitoring rsyslog to see if it's having a hard time etc.
I do have a sequence number (19321286 above), and on the raw feed, I
would like to make sure this is incremented by 1 (one) each time.

There's not a good way to do this because there are a good number of conditions that can cause logs to end up processed out of order. Anything that uses multiple threads to process logs is going to have this sort of problem. I believe that includes redis.

Log delivery over a local network if pretty darn reliable, but there are cases where there are known failures that will cause logs to get lost.

If you use UDP to deliver the logs, network congestion or the destination server being overloaded can cause you to loose logs.

If you use TCP to deliver the logs, any logs in flight when a connection is broken and needs to be re-established will be lost.

on a local network with a good HA pair of receivers, my opinion is that UDP is going to end up being more reliable, but the difference is small and only kicks in when other things are going wrong.

My suspicion is I should use redis, but I would love someone to say "A better solution is to use ...". I also want to rate check debug entries, as just sometimes I forget to turn them off (blush). Again, my suspicion is I should use the count module. And again, is this a sensible starting point?

you could, but you can also use global variables ($\blah variables). the count module was created at a time when the global variables weren't working.

as far as the debug logs go, since you sometimes want them on and other times don't, rather than doing a rate check in rsyslog as you go, why not put them (or a copy of them) into a separate file and then have a nightly report than tells you how many you have (or alerts you if you have 'too many')?

And, if that wasn't enough to ask, are there any plans to release these
two modules on the v8-stable/epel-6 repository? I don't mind compiling
etc. It's just nice to have yum track changes rather than me....

you mention the count module, what other module are you looking for?

David Lang
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to