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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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