Splunk Search

I need to exclude eventID 1058 but only when the host is ServerA or ServerB

Tellon
New Member

I need to exclude eventID 1058 but only when the host is ServerA or ServerB if its ServerC then I still want to see the event.

I tried NOT (EventID=1058 AND Server=ServerA OR Server=ServerB)

But this is not working as desired.

0 Karma

Jeff_Lightly_Sp
Communicator

I tried this with some of my data and this may be a solution for you. The AND, I believe is implied so not needed (notice the parens):

  • sourcetype= NOT EventID=1058 AND (Server=ServerA OR Server=ServerB)

Hope this helps!

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...