Ad Widget

Collapse

How to monitor logs on WIndows?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marbak96
    Junior Member
    • Jul 2020
    • 2

    #1

    How to monitor logs on WIndows?

    Hi,

    I would like to set monitoring logs on Windows,
    OS : Windows Sereve 2016
    I have confgured zabbix agent active on port 10051, i am using template Windows OS active.

    Our logs is in directory

    C:\Program Files\Zabbix Agent\Logs\Log-XX.XX.XXXX



    Remarks:

    Every day a new file is created with a new date and we want Zabbix to monitor on a regular basis.

    What i have done: I tried to set new item:
    key: logrt["C:\Program Files\Zabbix Agent\Logs\Log-[0-9]{2}.[0-9]{2}.[0-9]{4},ERR"]

    I am based on tutorial:




    I would be very grateful for help

    Last edited by marbak96; 14-07-2020, 17:31.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Originally posted by marbak96
    key: logrt["C:\Program Files\Zabbix Agent\Logs\Log-[0-9]{2}.[0-9]{2}.[0-9]{4},ERR"]
    The way you're quoting that is incorrect, I think. logrt[] requires two arguments, separated by a comma. The way you have things quoted, it's probably being treated as just one argument. Try one of these until you find one that works:

    Code:
    logrt["C:\Program Files\Zabbix Agent\Logs\Log-[0-9]{2}.[0-9]{2}.[0-9]{4}","ERR"]
    Code:
    logrt["C:\Program Files\Zabbix Agent\Logs\Log-[0-9]{2}.[0-9]{2}.[0-9]{4}",ERR]
    Code:
    logrt[C:\Program Files\Zabbix Agent\Logs\Log-[0-9]{2}.[0-9]{2}.[0-9]{4},ERR]

    Comment

    • marbak96
      Junior Member
      • Jul 2020
      • 2

      #3
      my item is not visible in latest data
      I used syntax code 1 and 2, code number 3 - error syntax


      Comment

      Working...