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!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...