Splunk Search

How to use extract using rex command?

wvsgo215
Engager

"Context":"{"user id":"jane.doe.sen", "Expense Date":"11/10/2022",

How to use extract this rex command?     

to come up result like 

user id Expense Date
jane.doe.sen 9/6/2022

please help                                                                                              

Labels (1)
Tags (2)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

Assuming the field is as written and is in the _raw field

| rex "user id\":\"(?<user_id>[^\"]*)\",\s+\"Expense Date\":\"(?<expense_date>[^\"]*)"
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...