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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...