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!

Stay Connected: Your Guide to July Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...