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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...