Ad Widget

Collapse

REGEX: Monitoring CLAM logs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oliverm
    Senior Member
    • May 2006
    • 155

    #1

    REGEX: Monitoring CLAM logs

    Hi chaps.

    I want to monitor clam logs on some servers to check to see whether the daily AV scan shows any infected items. The log shows the following line if there are infected items;

    Infected Items: x

    where X is the number of items (0 if none).

    Whats the best way to structure the item to check for this? I'm not up on my regular expressions. I'd like it to actually be able to whether the number AFTER "Infected Items:" is >0, but i suppose the same result would be to check whether the string "Infected Items: 0" IS NOT in the log file.

    How should I form the regexp for this ?

    Olly
Working...