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

Logfile monitoring - regular expressions to search multiple lines by agent

    XMLWordPrintable

    Details

    • Type: New Feature Request
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.7
    • Fix Version/s: 1.8.8
    • Component/s: Agent (G)
    • Environment:
      CentOS 5.6

      Description

      Logfile monitoring with regular expression is ok. But sometimes you need to search for log entries in more than one line.
      More information in this thread: http://www.zabbix.com/forum/showthread.php?t=19641&highlight=Application

      Example:

      foo
      foofoofoo
      foofoofoofoo
      error and much more
      here is the description
      foofoofoo
      foofoofoofoo
      

      regular expression:

      /^error.*\n.*$/m
      

      With this regular expression you will get both lines. But today it is not possible in zabbix

        Attachments

          Activity

            People

            Assignee:
            zabbix.support Zabbix Support Team
            Reporter:
            hirschnf Frank Hirschner
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: