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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...