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!

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...

The Great Resilience Quest: 10th Leaderboard Update

The tenth leaderboard update (11.23-12.05) for The Great Resilience Quest is out &gt;&gt; As our brave ...

Customer Experience | Call for Stories: Your 2023 Journey with Splunk!

Share your Splunk journey: Splunk is committed to supporting our customers toward success. As the year draws ...