Ad Widget

Collapse

Negation regex for eventlogs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Boghdan
    Junior Member
    • Jun 2012
    • 18

    #1

    Negation regex for eventlogs

    Hello every1.
    Trying to find a way to make a negation regex in an item fetching Windows event logs. The idea was to get all Warning and Error Application event logs except the ones having "AdsmClientService" as their source:

    Code:
    eventlog[Application,,"Warning|Error","^(?!.*AdsmClientService).*$"]
    Doesn't work this way. Also tried to put the regex into the second cell:

    Code:
    eventlog[Application,"^(?!.*AdsmClientService).*$","Warning|Error"]
    This also didn't work for me.

    Any ideas, any1?
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2

    Comment

    Working...