Dashboards & Visualizations

display specific content from message

Leon88
Engager

I have a below message. how can I only display ResponseID in output? thanks

message: <?xml version='1.0' encoding='ISO-8859-1'?><Submission Id="12345" <LastName>XXX</LastName><ResponseID>137ce83fe8ddb052-1698535326634</ResponseID><Date>2023.10.28 23:23:14</Date>

Labels (2)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @Leon88,

you have to use a regex to extract this field, something like this:

index=your_index
| rex "\<ResponseID\>(?<ResponseID>[^\<]*)"
| table _time ResponseID

that you can test at https://regex101.com/r/Sj8hDe/1

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @Leon88,

you have to use a regex to extract this field, something like this:

index=your_index
| rex "\<ResponseID\>(?<ResponseID>[^\<]*)"
| table _time ResponseID

that you can test at https://regex101.com/r/Sj8hDe/1

Ciao.

Giuseppe

gcusello
SplunkTrust
SplunkTrust

Hi @Leon88 ,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

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 Certification at ...

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 ...