Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12986

Preprocessing log doesn't process Local time

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 3.4.3
    • None
    • Server (S)

    Description

      Steps to reproduce:
      Create an item for log file monitoring:

      Type: Zabbix agnet (active)
      Key: logrt["/path/to/log/file.log",error]
      Type: Log
      Log time format: MM/dd/yyyy hh:mm:ss

      Mikrotik log returns line like:

      Nov/02/2017 15:42:39 system,error,critical login failure for user root from [IP] via ssh

      If you want to have local log time processed
      Create preprocessing rule:

      Regular expression: (^Nov)(.+) and as a result: 11\2

      Result:
      You will get the correct line:

      11/02/2017 15:42:39 system,error,critical login failure for user root from [IP] via ssh

      But Local time for the log monitoring won't be filed.

      Expected:
      Local time is processed after item preprocessing which first substitutes human readable months with machine readable MM.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              edmunds.vesmanis Edmunds Vesmanis
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: