Ad Widget

Collapse

Windows event log Pre processing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PaulT
    Junior Member
    • Oct 2020
    • 2

    #1

    Windows event log Pre processing

    I have successfully used preprocessing of the message text in windows event log to drop events based on the text (via regex and discard).
    Is it possible to access the event ID in pre processing as a way to drop events rather than selecting them in the key with lots of in the key.
    Or any other ideas for a catchall for error events, but excluding a list of those evenyt id's we know are not required
  • PaulT
    Junior Member
    • Oct 2020
    • 2

    #2
    I understand I can do event ID's in the key, and this works well for selecting a small number of specific event ID's. I am looking at a catchall item for say error events in the system log, but then want to use pre processing if possible to discard the ones I specifically want to ignore. I presume one option is to have a negative lookahead in the ID regex in the key, but then I'd have to change the item key each time to add another exclusion, but was hoping for a more elegant solution where the key is not being changed each time, and doesn't get more cumbersome each addition. If I had a way to use a pre processing rule to discard on event ID that would be perfect.

    Comment

    • Semiadmin
      Senior Member
      • Oct 2014
      • 1625

      #3
      An eventlog item has some fields: Timestamp, Local time, Source, Severity, Event ID, Value. You need a field Event ID, but preprocessing works with a field Value only.

      Comment

      • Apopka
        Junior Member
        • Nov 2020
        • 1

        #4
        Thanks for the update and quick reply. I'll be sure to keep an eye on this thread. Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward for solution. Pasco Connect
        Last edited by Apopka; 01-12-2020, 13:38.

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #5
          Exclude ID-s can be done in item config
          eventlog[name,<regexp>,<severity>,<source>,<eventid>,<maxli nes>,<mode>]
          eventid - regular expression describing the event identifier(s)

          Comment

          Working...