Can logrt support some directory name written in regular expression ?

XMLWordPrintable

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

      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?

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

              Created:
              Updated: