Ad Widget

Collapse

logrt item not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • choun
    Junior Member
    • Nov 2019
    • 8

    #1

    logrt item not working

    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!
    Last edited by choun; 14-11-2019, 05:13.
  • choun
    Junior Member
    • Nov 2019
    • 8

    #2
    this is resolved by using localhost_access_log.[0-9]{1,4}-[0-9]{1,2}-[0-9]{1,2}.txt

    Comment

    Working...