Dashboards & Visualizations

Convert time in a field to human readable

tdebonee
Engager

Hello, I have a field called "startTime"

startTime: 1699148280000

I would like to convert it to human readable. Not having any luck.

Any help would be appreciated.

Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

It looks like it might be milliseconds, so divide by 1000 before using strftime() to format it into human readable format.

| eval start_time=strftime(startTime/1000,"%F %T.%3N")

View solution in original post

tdebonee
Engager

Thank you. That worked.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

It looks like it might be milliseconds, so divide by 1000 before using strftime() to format it into human readable format.

| eval start_time=strftime(startTime/1000,"%F %T.%3N")
Get Updates on the Splunk Community!

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...