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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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