Splunk Search

Return tag pair if tag contains any value

rizwan0683
Path Finder

I would like to return all messages that contains tag 6410. Currently the below will return all messages even if they do not contain tag 6410

index=gmrt_ett sourcetype=pubhub_emea TracingIncomingMessage "ET_OMS" | search "6401=POV"
| extract pairdelim=";" kvdelim="\=" clean_keys=false 
| dedup _raw  
| searcg 6410=(?.*)
| table 11,6410
Tags (1)
0 Karma

rizwan0683
Path Finder

This will do it if anyone needs, simplere than I thought

 index=gmrt_ett sourcetype=pubhub_emea TracingIncomingMessage "ET_OMS" | search "6401=POV"
 | extract pairdelim=";" kvdelim="\=" clean_keys=false 
 | dedup _raw  
 | search 6410=*
 | table 11,6410
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...