Dashboards & Visualizations

split string from a field

sahana
Engager

Hi 

I have a message body text as like below

message : RequestBody : :  :{

                                 individualValue : {

                                                   xxxxxx;

                                                   YYYY;

-----------------------having many txt in between these

}

}

How can i fetch the string "individualValue" from the message body

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Do you mean something like this?

| rex "(?<individualValue>individualValue\s:\s\{[^\}]+\})"
0 Karma

sahana
Engager

I need to assign this string to a field, something like service=individualValue after splitting

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Do you mean like this:

| rex "(?<service>individualValue\s:\s\{[^\}]+\})"

The name of the field which rex puts the value into is in the angle brackets <>

Or do you want to split the individual values in the braces {} into a multi-value field?

0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...