Ad Widget

Collapse

Monitoring log files under custom folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raylee
    Junior Member
    • Oct 2014
    • 3

    #1

    Monitoring log files under custom folder

    Hi,

    Today is my 1st day I step into Zabbix world. The 1st task I want to use Zabbix is to use it to monitor application logs under 3 windows servers.

    There is no log rotation under our applications, and log files per daily are created under folder format "YYYY-MM-DD"

    for example :
    App1
    - D:\App1_Log
    - 2014-10-30
    - All_20141030.txt
    - Error_20141030.txt
    - 2014-10-31
    - All_20141031.txt
    - Error_20141031.txt

    Can Zabbix with agent installed on windows go into a "date format" folder and monitor "pattern" within log files?

    Would you give me some advice on this question?

    Any suggestions are welcome and appreciated.

    Thanks for your attention in advance,

    Ray
  • HaveDill
    Senior Member
    • Sep 2014
    • 103

    #2
    Use the logrt function of zabbix.


    It will look for the most recently modified logfile, so for example it would look something like

    logrt[C:\All*,ERROR,,,skip]
    or logrt[C:\Error_*,error,,,skip]

    Comment

    • raylee
      Junior Member
      • Oct 2014
      • 3

      #3
      Originally posted by HaveDill
      Use the logrt function of zabbix.


      It will look for the most recently modified logfile, so for example it would look something like

      logrt[C:\All*,ERROR,,,skip]
      or logrt[C:\Error_*,error,,,skip]
      Hi,

      Thanks for your prompt reply. But can I set zabbix to go into
      "date format named" folder automatically and get all logs be monitored?

      Thanks a lot
      Ray

      Comment

      • raylee
        Junior Member
        • Oct 2014
        • 3

        #4
        Originally posted by raylee
        Hi,

        Thanks for your prompt reply. But can I set zabbix to go into
        "date format named" folder automatically and get all logs be monitored?

        Thanks a lot
        Ray
        I think my question should be changed to "can logrt support regular expression on folder"

        Thanks,
        Ray

        Comment

        Working...