Ad Widget

Collapse

Monitoring log file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bass.angler
    Junior Member
    • May 2008
    • 2

    #1

    Monitoring log file

    Hi all,

    I am currently tracking a log to find the string "probl", item and trigger are listed below.

    Item: log[/home/server.log,probl]

    Trigger: ({host:log[/home/server.log,probl].str(probl)}=1)&({host:log[/home/server.log,probl].nodata(10)}#1)

    The trigger activates an action (send email), and this works well.

    Then, is possible to not send mail if the string "problem" was found on log?

    Mark
  • Kai-Kai
    Senior Member
    • Apr 2009
    • 142

    #2
    If I right understand, you just want your test match probl and not problem, is it right ?

    I think my question can help you to find an answer to yours.


    I think you have to curstomize a bit your pattern to match only "probl"... perhaps probl[:space:] or something like that...

    I'm currently trying to get informations about the syntax to use to define elaborated regexp.

    Hopping it can help.
    Last edited by Kai-Kai; 08-06-2009, 10:02.

    Comment

    Working...