Splunk Search

how to fetch the key values from double pipe separator

iamlucky92
Observer

Hi Team,

I am having a logging with double pipe separator (||)  and need to get the key values from logs. 

Log pattern:-

logs ........|ab-c=1234||xy-z=1598||cd-e=5ab4||....more logs

Need to fetch table to with values of (ab-c,xy-z,cd-e). 

Till now i tried 

search | dedup ab-c, cd-e,xy-z | table ab-c, xy-z, cd-e  

but its not working. Please suggest

 

Labels (1)
0 Karma

rnowitzki
Builder

Hi @iamlucky92 ,

I added a file with your sample line in it to my lab.
The fields and values were extracted automatically, without any regex or conf file manipulation.

The automatic key value field extraction worked just fine.

How is this data coming in on your side?   Could you share the props.conf that deals with it?
Also an example of the whole event would be helpfull. 

BR
Ralph

--
Karma and/or Solution tagging appreciated.
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, ...