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!

Enterprise Security Content Update (ESCU) | New Releases

In January, the Splunk Threat Research Team had one release of new security content via the Splunk ES Content ...

Expert Tips from Splunk Professional Services, Ensuring Compliance, and More New ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Observability Release Update: AI Assistant, AppD + Observability Cloud Integrations & ...

This month’s releases across the Splunk Observability portfolio deliver earlier detection and faster ...