Splunk Search

How to merge two Splunk searches into one?

pratheeshrajan1
New Member

Hi Team,

search sourcetype=my_logs source.item_id=34324234324| stats count by event_type

and

search sourcetype=my_logs source.folder_id=4324324324 | stats count by event_type

Can someone help me to merge the above two searches to a single one please

Tags (1)
0 Karma

LuiesCui
Communicator
sourcetype=my_logs source.item_id=34324234324 AND source.folder_id=4324324324| stats count by event_type 

you don't have to put a "search" at the front.

0 Karma

jeffland
SplunkTrust
SplunkTrust

You mean like this?

sourcetype=my_logs source.item_id=34324234324 OR source.folder_id=4324324324 | stats count by event_type
0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...