Splunk Search

Milliseconds to HH:MM:SS

tb5821
Communicator

can anyone provide me with a way to have Splunk convert an extracted field which is currently in milliseconds to HH:MM:SS?

Tags (2)
0 Karma
1 Solution

lguinn2
Legend

Try

... | eval inSec = inMs / 1000 | fieldformat inSec = tostring(inSec, "duration")

where inMs is the name of your extracted field

View solution in original post

lguinn2
Legend

Try

... | eval inSec = inMs / 1000 | fieldformat inSec = tostring(inSec, "duration")

where inMs is the name of your extracted field

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...