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

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.8.8
    • 1.8.7
    • Agent (G)
    • CentOS 5.6

      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

            zabbix.support Zabbix Support Team
            hirschnf Frank Hirschner
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: