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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

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