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

logrt[] : Clarify that filename regex only needs to match a portion of logfile name

XMLWordPrintable

    • 0.25

      https://www.zabbix.com/documentation/6.0/en/manual/config/items/itemtypes/zabbix_agent

      Existing:
      file_regexp - absolute path to file and the file name described by a regular expression. Note that only the file name is a regular expression

      Comments on existing wording:
      Perhaps due to past experience, and because the details were not explictly spelled out, I assumed that the regex must completely describe the filename pattern. ie I assumed the regex was anchored with ^ and $. And that if you wanted to match a word in the middle of the filename, you'd need to use a regex of:

      .*some_word.*
      

      Suggested:
      file_regexp - absolute path to file and the file name described by a regular expression. Note that only the file name is a regular expression, and the regex need not match the entire filename. (e.g. regex of "abc" will match a logfile name of "prefix_abc_suffix.txt".)

            adancis Arturs Dancis
            Matthew.Steeves2 Matthew Steeves
            Team D
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: