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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...