Ad Widget

Collapse

log file monitor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MMK
    Junior Member
    • Mar 2010
    • 5

    #1

    log file monitor

    How i can monitor log file (windows). File format is log_yearmonthday.log (log_20110406.log).
    I try alias in zabbix_agentd.conf
    Alias=test.log:"C:\log_%date:~9,4%%date:~6,2%%date :~3,2%.log"

    and item

    zabbix_agent active

    log[test.log,,,100]

    result is not supported

    Can some one help me.

    Br. MMK
  • Rudd
    Member
    • Mar 2011
    • 69

    #2
    You don't need an alias in zabbix_agentd.conf.

    Try Zabbix agent (active) with: "logrt[G:\Path\to\logs\log_*.log,,,100]"

    Comment

    • MMK
      Junior Member
      • Mar 2010
      • 5

      #3
      But every day create a new log file. How to monitor the latest?

      Comment

      • Rudd
        Member
        • Mar 2011
        • 69

        #4
        The Zabbix developers thought about that That is why they allow wild cards and pattern matching. The before mentioned item should pick up on newly created logfiles.

        Have a look here for more information: http://www.zabbix.com/documentation/...g/how_it_works

        Comment

        Working...