I am using zabbix to monitor log file on my network for keywords like error failed and warning while using the
log["/tmp/test/test-monitoring.log","error",,1]
But what happens currently is that when zabbix see the keyword "error" than log it in the latest data area which is fine
But the issues is for some errors though the error line gets archived in zabbix. But the actual problem that need to be fixed gets outputted in the following lines after the keyword error has displayed
for example I run oracle db on my home network and for oracle log files
An error will be outputted as:
ERROR | Java.extension0824 jboss.exemption status
So the error line above will be archived into the latest data
however the next line following it will say
"INFO Cannot verify database schema"
which means the app using the database cannot connect or find the database
but that line wont get archived into zabbix which makes troubleshooting very difficult
So currently my zabbix is archiving only the line with keyword "error" in it only
So I need Help figuring out
is there a way to have zabbix not only grab the line with the keyword error in it but to also grab the next 20 or 30 line after the keyword error has displayed?
log["/tmp/test/test-monitoring.log","error",,1]
But what happens currently is that when zabbix see the keyword "error" than log it in the latest data area which is fine
But the issues is for some errors though the error line gets archived in zabbix. But the actual problem that need to be fixed gets outputted in the following lines after the keyword error has displayed
for example I run oracle db on my home network and for oracle log files
An error will be outputted as:
ERROR | Java.extension0824 jboss.exemption status
So the error line above will be archived into the latest data
however the next line following it will say
"INFO Cannot verify database schema"
which means the app using the database cannot connect or find the database
but that line wont get archived into zabbix which makes troubleshooting very difficult
So currently my zabbix is archiving only the line with keyword "error" in it only
So I need Help figuring out
is there a way to have zabbix not only grab the line with the keyword error in it but to also grab the next 20 or 30 line after the keyword error has displayed?

Comment