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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...