Splunk Search

Convert SS:%3N format string to milliseconds

okug
New Member

Hi,
An application outputs a processingtime information in "SS:%3N" format (e.g. "3.241" = 3.241 seconds )
Is there a way to convert the string to milliseconds value?

Thanks,
Hiroshi

Tags (1)
0 Karma

masonmorales
Influencer
| eval processingtimems=processingtime*1000
0 Karma

okug
New Member

Oops, there was a typo.
Example log message is 3:241 (not 3.241).

0 Karma

jkat54
SplunkTrust
SplunkTrust
0 Karma

okug
New Member

Thanks for your comments.
Original log message is using ":", like 3:241

Could you give me an example usage of strftime / strptime for how to convert "3:241" string to a double?

Thanks,

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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