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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...