Splunk Search

How do I extract the response time from the following log?

yograjpatel
New Member

INFO -Transaction successful. Time taken to get Response in millis:29; XURA Response Content:\u003c?xml version="1.0" encoding="utf-8"?\u003e

Tags (1)
0 Karma
1 Solution

Vijeta
Influencer

@yograjpatel Try this

|rex field=_raw "\W+millis:(?<response_time>\d+);"

View solution in original post

0 Karma

Rob2520
Communicator
| rex field=_raw "\w+\:(?<timeinmillis>\d+)\;"
0 Karma

Vijeta
Influencer

@yograjpatel Try this

|rex field=_raw "\W+millis:(?<response_time>\d+);"
0 Karma

yograjpatel
New Member

tried the below:
rex field=_raw "Time taken to get Response in millis\"\s:\s\"(?[^\"]+)"

not able to get the output

0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...