Count the number of log entries

Started by victrola, March 18, 2011, 02:34:16 PM

Previous topic - Next topic

victrola

Hi,

Is it possible to count the amount of times a particular entry happens in a logfile over a minute?


Thanks!

Victor Kirhenshtein

Not in a straight way. You can achieve this by generating event via logwatch for each record and use situation object for counting (there was an example of how to use situations for counting events on the forum), but probably it will be easier to write external script for this.

Best regards,
Victor