Getting Data In

How do I convert the format of this timestamp in Splunk?

vamsivasili
New Member

How do I convert 2016-06-17T14:16 to 2016-06-17 14:16:00 format in Splunk? Appreciate your help.

0 Karma

gfreitas
Builder

You can use eval strftime and strptime for those types of changes: http://docs.splunk.com/Documentation/Splunk/6.4.1/SearchReference/CommonEvalFunctions.

Is the time you specified in the _time field or in another field?

0 Karma

vamsivasili
New Member

It is another field I've extracted. In that case how do I convert?

0 Karma

gfreitas
Builder

If you just want to remove the "T", you can use:

| eval field2=replace(field1, "T", " ")

0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...