Getting Data In

How do I change a CSV timestamp?

miguel1423
Explorer

Hello,

I add an CSV data into my splunk without any timestamp and SPLUNK add automatiquely an timestamp with the format "3/16/22 4:33:55.000 PM" I would like change the date on the format "3/16/22" how can I do that ? 

 

Regards,

 

 

Labels (2)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

Can you please provide sample data or screenshot of which timestamp you are talking about?

And also how you have added the CSV in Splunk.

0 Karma

vinod743374
Communicator

You Can try Like this,

| eval timeformat=strftime(_time,"%m/%d/%y")

vinod743374_0-1648704080855.png

 

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...