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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...