Splunk Search

How to extract value and type in a search?

Srikanth1131
Explorer

 

payload: Message  { channel=EMAIL , type=security_event_postinfection_admin ,  locale=it_IT , recipientAddress=LIOUDMILA@ME.COM,  data=[MESSAGEDATA  {  key=domain,  value=https://okt.to/ , type=null } , MessageData  {  key=date_time ,  value=2022-03-24T22:22:48.809 ,  type=null }  MessageData  {  key=policy ,  value=botnet ,  type=null } ,  MessageData  {key=content_categories ,  value=[malware] ,  type=null } ,  MessageData  {  key=manfacturer ,  value=Intel ,  type=null } ]}

 

Labels (1)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Is this the actual raw data, or it the real data proper JSON? For example, can you use spath to extract message data as a multi-value field, expand that, then extract the key, value and type from the message data?

0 Karma

Srikanth1131
Explorer

Yes it is json format and we use spath. Can you please tell me how to extract it using spath

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Can you share the raw event data in a code block?

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...