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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...