I am trying to set up log file monitoring. Here how I think it should behave:
- Log file contains a certain key word, let's say "error"; this can be a transient error condition, means the key word might appear only once
- An associated trigger should go to "PROBLEM"
- The trigger value should remain "PROBLEM" even if the word "error" does not appear in the log in future samples anymore
- The trigger value should be reset to "OK" after the event gets approved
Right now, I can only EITHER have the trigger go to PROBLEM if the log finds the key word, but then automatically go back to OK in the next item scan cycle if the sample does not contain the key word again (bad), OR alternatively (and also bad) get the trigger to remain on PROBLEM if fired once.
I googled around and found many people asking similar questions - but no answer I could use. I considered to include the macro "{TRIGGER.EVENTS.UNACK}" into the trigger expression (to check whether there are >0 unacknowledged events for the trigger and if yes, keep the value "PROBLEM"). But according to the docu - and also according to the error message I got when I tried - "{TRIGGER.EVENTS.UNACK}" cannot be used in trigger expressions.
Is there a way to get the intended trigger behavior?
- Log file contains a certain key word, let's say "error"; this can be a transient error condition, means the key word might appear only once
- An associated trigger should go to "PROBLEM"
- The trigger value should remain "PROBLEM" even if the word "error" does not appear in the log in future samples anymore
- The trigger value should be reset to "OK" after the event gets approved
Right now, I can only EITHER have the trigger go to PROBLEM if the log finds the key word, but then automatically go back to OK in the next item scan cycle if the sample does not contain the key word again (bad), OR alternatively (and also bad) get the trigger to remain on PROBLEM if fired once.
I googled around and found many people asking similar questions - but no answer I could use. I considered to include the macro "{TRIGGER.EVENTS.UNACK}" into the trigger expression (to check whether there are >0 unacknowledged events for the trigger and if yes, keep the value "PROBLEM"). But according to the docu - and also according to the error message I got when I tried - "{TRIGGER.EVENTS.UNACK}" cannot be used in trigger expressions.
Is there a way to get the intended trigger behavior?
Comment