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
.conf21 CFS Extended through 5/20!

Don't miss your chance
to share your Splunk
wisdom in-person or
virtually at .conf21!

Call for Speakers has
been extended through
Thursday, 5/20!