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

Log time format does not support preprocessing

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.21
    • None

      Steps to reproduce:

      1. Configure logrt item for a Zabbix agent on Linux:
        1. logrt item for file /tmp/test
        2. Log time format = yyyy-MM-dd hh:mm:ss
        3. Preprocessing rule: Regexp: .* -> 20\0 (= whatever string, add "20" in front of it)
      1. echo "23-08-31 18:22:05 testing" >> /tmp/test

      Result:

      Timestamp Local time Value
      2023-08-31 18:22:06   2023-08-31 18:22:05 testing

      = string conforms to the configured log time format but local time is not parsed.

      Expected:

      It is expected that the local time is parsed according to the log time format from the preprocessed string.

            fvilarnovo Facundo Vilarnovo
            markkul Markku Leiniö
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: