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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...