The log files to be monitored are as follows, and I want to monitor the string "ERROR".
/var/log/waagent.log
ITEM
log[/var/log/waagent.log,,,,skip]
Trigger : If more than 0, trigger will occur.
count(/Linux Azure Waagent/log[/var/log/waagent.log,,,,skip],#1,"regexp","ERROR")>0
Result
It seems to be searching for "
ERROR
" throughout the log file. I want to find "ERROR
" in the last line of the log file.
If possible, I also want to create a trigger that solves the problem when "INFO
" is printed. Please help me.