Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-1143

Can logrt support some directory name written in regular expression ?

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.10
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Labels:

      Description

      It is a simple question of Zabbix internal behavior.

      The logrt is suported some file name written by regular expression.
      Can it be supported directory name that contained regular expression?

      ----------------------------------------------------------------------------------------
      Self test environment

      Zabbix server / Agent :1.8.7-2

      item : logrt[/var/log/test/....-..-../....-..-..\.log]
      trigger :

      {Zabbix:logrt[/var/log/test/...-..-../....-..-..\.log].str(test)}

      =1
      target file: /var/log/test/YYYY-MM-DD/YYYY-MM-DD.log
      (real file name : /var/log/test/2012-03-09/2012-03-09.log)

      The permission of target file is 755 ,ownership is zabbix:zabbix.

      See attached file "zabbix_agentd.log"
      ----------------------------------------------------------------------------------------

      According to http://fossies.org/dox/zabbix-1.8.10/logfiles_8c_source.html,
      the target file that is separated by "Directory" and "File name"
      It seems that the rotation log file detection by regular expression works only in "File name".
      Is that right?

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            toshiyuki.ishii Toshiyuki Ishii
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: