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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...