Getting Data In

Getting Date to Display Correctly - CSV Report

cruzalan90
Explorer

Hello,

I'm stumped...I'm trying to correctly display 'Date' in a scheduled CSV report. Within Splunk, date is displayed correctly:
_time

10/10/13 8:48:57.000 AM

Within CSV report:
_time
1380916998

Also tried this: |convert ctime(_time) as timestamp
But timestamp displays 10:30.1 which I than have to format cell to recognize 'Date' value. (10/6/13 12:10 PM)

Tags (3)
0 Karma
1 Solution

cruzalan90
Explorer

Took a little time to play with it but it worked!

Thank you

View solution in original post

0 Karma

cruzalan90
Explorer

Took a little time to play with it but it worked!

Thank you

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please mark my answer as accepted.

---
If this reply helps you, Karma would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Have you tried | eval ts=strftime(_time, "%m/%d/%y %H:%M %p") ?

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...