Hello,
I'm trying to build a trigger for a log file, but unfortunately it keeps triggering incorrectly. I think this happens because the log does not receive any entries for a long time.
In the end I want to check which statement is last in the log:
I'm trying to build a trigger for a log file, but unfortunately it keeps triggering incorrectly. I think this happens because the log does not receive any entries for a long time.
In the end I want to check which statement is last in the log:
Code:
Problem expression find(/SERVER/log[LOGFILE],#50,,"Wechsel nach Runlevel 5")=1 or find(/SERVER/log[LOGFILE],#50,,"Wechsel nach Runlevel 4")=1 or find(/SERVER/log[LOGFILE],#50,,"Wechsel nach Runlevel 3")=1 or find(/SERVER/log[LOGFILE],#50,,"Wechsel nach Runlevel 2")=1 or find(/SERVER/log[LOGFILE],#50,,"Wechsel nach Runlevel 1")=1 Recovery expression find(/SERVER/log[LOGFILE],#50,,"Wechsel nach Runlevel 7")=1
You could just have a trigger last(/host/item)<7
Comment