Splunk Search

Multiple matchs (AND) in transform.conf REGEX

arabii
Engager

Hi,

I want to filter some events based on the occurence of multiple matchs, for instance, I want to match all (Windows) events that match (EventCode=566) AND simultanously match also (keyword=success)

Of course, I still need to do more matchs on the REGEX (Theses are working fine using the | operator), but the issue is really with doing an AND.
Any advice ?

Best regards.

Tags (3)

MHibbin
Influencer

For filtering the events I assume you are using the method listed in this doc. And matching you events in this way.

I am a bit confused what you mean in your second point... more info please.

0 Karma

arabii
Engager

I'm using the method described in the link to discard specific items and keep the remaining logs.

Below is REGEX l'm actually using:
REGEX= (?msi)^EventCode=(566|578|836|837|4662|4674|5156|4769)

I want to add somme supplementary checks for specific eventcodes like searching for another string (the search should be done only when specific eventcodes are matched)

I was planning to use REGEX like the one below but i doesn't match at all:
REGEX= (?msi)(^EventCode=(566|578|836|837|4662|4674|5156|4769))|(^EventCode=4776.Keywords=(Success))

Best regards

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...