Ad Widget

Collapse

Windows log file monitoring - include log file name for logrt[]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phoeneous
    Member
    • Nov 2010
    • 32

    #1

    Windows log file monitoring - include log file name for logrt[]

    I'm using an active zabbix agent item to monitor a folder that generates several log files that get a random number in it's file name. I'm getting data and my trigger and alerts are working fine.

    Item:
    logrt["C:\Folder\Logs\Log.*[0-9]{1,3}","ERROR","UTF-8",100,skip,]

    Trigger:
    {HOST:logrt["C:\Folder\Logs\Log.*[0-9]{1,3}","ERROR","UTF-8",100,skip,].str(ERROR)}=1

    Say there are 8 files in the Logs folder, how can I find out which one contains the error string?
  • phoeneous
    Member
    • Nov 2010
    • 32

    #2
    Anyone?

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      Basically, most new file that match the the regular expression will be monitored.
      Please check time stamp of files.

      Comment

      • phoeneous
        Member
        • Nov 2010
        • 32

        #4
        Originally posted by Atsushi
        Basically, most new file that match the the regular expression will be monitored.
        Please check time stamp of files.
        But if 1000 new files are created how do I know which one to check? I just need to include the triggered filename in the alert.

        Comment

        • phoeneous
          Member
          • Nov 2010
          • 32

          #5
          Originally posted by phoeneous
          But if 1000 new files are created how do I know which one to check? I just need to include the triggered filename in the alert.
          Bump. Any help is appreciated.

          Comment

          • phoeneous
            Member
            • Nov 2010
            • 32

            #6
            Anyone?

            Comment

            Working...