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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...