Hi Guys,
I am using Zabbix 3.2 version for our application and trying to configure the log monitoring with logrt.
I have tried to define items in several manner to monitor number of logs in a directory using regular expression but they are not working as I expected:
1) logrt["/apps/opt/weblogic/config/project/logs/[A-Z]*.log","ORA-","UTF-8",,skip] : Monitoring only one log continuously along with archived logs having datestamp after .log. And returning the same lines repeatedly in Latest data.
2) logrt["/apps/opt/weblogic/config/project/logs/^[A-Z]*.log$","ORA-","UTF-8",,skip] : Not working. No lines captured from the log though we have required string in log file.
3) logrt["/apps/opt/weblogic/config/project/logs/[A-Z]*.log$","ORA-","UTF-8",,skip] : Monitoring only one log but returning same lines repeatedly.
4) logrt["/apps/opt/weblogic/config/project/logs/Test.log$","ORA-","UTF-8",,skip] : I have hard coded the log name and this case it is working fine.
How can I setup log monitoring with regular expression to monitor all my files in directory. Please help !!!
I am using Zabbix 3.2 version for our application and trying to configure the log monitoring with logrt.
I have tried to define items in several manner to monitor number of logs in a directory using regular expression but they are not working as I expected:
1) logrt["/apps/opt/weblogic/config/project/logs/[A-Z]*.log","ORA-","UTF-8",,skip] : Monitoring only one log continuously along with archived logs having datestamp after .log. And returning the same lines repeatedly in Latest data.
2) logrt["/apps/opt/weblogic/config/project/logs/^[A-Z]*.log$","ORA-","UTF-8",,skip] : Not working. No lines captured from the log though we have required string in log file.
3) logrt["/apps/opt/weblogic/config/project/logs/[A-Z]*.log$","ORA-","UTF-8",,skip] : Monitoring only one log but returning same lines repeatedly.
4) logrt["/apps/opt/weblogic/config/project/logs/Test.log$","ORA-","UTF-8",,skip] : I have hard coded the log name and this case it is working fine.
How can I setup log monitoring with regular expression to monitor all my files in directory. Please help !!!

Comment