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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...