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!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...