Hello, I'm trying to monitor logs which gets generated on a daily basis. This doesnt seem to work but no error thrown on latest data field.
Zabbix server - 3.2.11 (Ubuntu 16.04)
agent - 3.2.7
Host - Linux
key: logrt[“/home/abc/localhost_access_log.[0-9]-[0-9-[0-9].txt”,,”UTF-8”,30,skip]
Log pattern: localhost_access_log.2019-11-05.txt, localhost_access_log.2019-11-06.txt....etc ( generates one text file every day)
I tried to search online and confirms that regular expression supports the file name only (not the path). This key should work but it didn't. Could someone please help here?
Thanks!
Zabbix server - 3.2.11 (Ubuntu 16.04)
agent - 3.2.7
Host - Linux
key: logrt[“/home/abc/localhost_access_log.[0-9]-[0-9-[0-9].txt”,,”UTF-8”,30,skip]
Log pattern: localhost_access_log.2019-11-05.txt, localhost_access_log.2019-11-06.txt....etc ( generates one text file every day)
I tried to search online and confirms that regular expression supports the file name only (not the path). This key should work but it didn't. Could someone please help here?
Thanks!
this is resolved by using localhost_access_log.[0-9]{1,4}-[0-9]{1,2}-[0-9]{1,2}.txt
Comment