Splunk Enterprise

Splunk Time Conversion

OiskyPoisky
Explorer

Morning Team,

Currently looking at trying to convert what i think is 10 digit Unix/Epoc time into a human readable format but struggling to find the right syntax.

"timestamp" field values:

1561012289
1561012304
1561012315
1609193962

 

Any assistance would be appreciated, happy to provide more info if needed!

Labels (1)
0 Karma
1 Solution

to4kawa
SplunkTrust
SplunkTrust

try strptime with %S

View solution in original post

0 Karma

OiskyPoisky
Explorer

Thanks Kindly! 

Fiddled around a little but got to this eventually:

| eval timestamp=strftime(timestamp, "%Y-%m-%d")

Thanks for pushing me in the right direction 🙂 

0 Karma

to4kawa
SplunkTrust
SplunkTrust

try strptime with %S

View solution in original post

0 Karma
Register for .conf21 Now! Go Vegas or Go Virtual!

How will you .conf21? You decide! Go in-person in Las Vegas, 10/18-10/21, or go online with .conf21 Virtual, 10/19-10/20.