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
Ultra Champion

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
Ultra Champion

try strptime with %S

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...