Ad Widget

Collapse

Log file monitoring, trigger an alert when text A appears without text B

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WishfulThinking
    Junior Member
    • Jul 2018
    • 4

    #1

    Log file monitoring, trigger an alert when text A appears without text B

    Hi

    I have a case with log file monitoring. An alert must be triggered each time the string "ERROR:" appears and string "long" does not.

    Example:
    "2018-06-28 13:39:14 CEST ERROR: something happened" # Fire an alert
    "2018-06-28 13:39:14 CEST ERROR: this takes too long" # Don't fire an alert

    Log file is being rotated each day and the filename contains date and timestamp. I've already got that fixed.
    Host is a Windows server.

    Agent is running 3.4.6.
    Zabbix server is currently at version 3.2.4. Will consider upgrading to 3.4 if it makes sense.

    Any ideas?
    Last edited by WishfulThinking; 05-07-2018, 13:19.
Working...