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

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...