Splunk Search

How to convert my response time field into seconds?

sravankaripe
Communicator

i want to retrieve responsetime and convert it into seconds. please help me with Rex

IP                        Responsetime(ms)
12.34.567.890             163000
23.45.678.901             199000
34.56.789.012             162000
1 Solution

somesoni2
Revered Legend

So the Reponsetime(ms) is already available, you just want to convert it to sec. If yes, then just add following eval to your search

your current search | eval "Responsetime(ms)"='Responsetime(ms)'/1000

View solution in original post

somesoni2
Revered Legend

So the Reponsetime(ms) is already available, you just want to convert it to sec. If yes, then just add following eval to your search

your current search | eval "Responsetime(ms)"='Responsetime(ms)'/1000

somesoni2
Revered Legend

This is single field or you've two fields IP and Responsetime(ms)?

0 Karma

sravankaripe
Communicator

two fields

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...