Splunk Search

Can I write control code in TIME_FORMAT?

oda
Communicator

I want to get time in this log file.

[sample log]
1234 567 789^G20190613^G14:00^Gsample_log

^G mean control code.

TIME_PREFIX was done.
However, TIME_FORMAT does not work.

How should I write it?

Tags (1)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

Hi @oda,

Below configuration looks working.

TIME_FORMAT = %Y%m%d^G%H:%M
TIME_PREFIX = \^G

alt text

Hope this helps!!!

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 ...