Splunk Search

Help Combining 2 regex searches

ssehgal
Explorer

hi,
i have been trying to combine these two searches together. can some one please help combine them.

first search: index=pci_hpd_index device_id=FGT* | regex log_id="4454[4-7]"

second search: index=pci_hpd_index device_id=FGT* | regex log_id="32[0-5][0-4][0-9]"

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

If by combine you mean find events matching at least one of the regular expressions, use the pipe symbol to get a regex "or":

... | regex log_id="(4454[4-7])|(32[0-5][0-4][0-9])"

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

If by combine you mean find events matching at least one of the regular expressions, use the pipe symbol to get a regex "or":

... | regex log_id="(4454[4-7])|(32[0-5][0-4][0-9])"

ssehgal
Explorer

thanks that helped a lot. it works now.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...