Splunk Search

TIME_FORMAT vs DATETIME_CONFIG = CURRENT

vbumgarner
Contributor

I have a log file that has a date at the top, but otherwise is essentially unpredictable stdout. It could be written to for minutes or days.

This seems appropriate and acceptable:
SHOULD_LINEMERGE = False
DATETIME_CONFIG = CURRENT

What I'm wondering is if I have a TIME_PREFIX and TIME_FORMAT, will it try those first? The first line is predictable, so I could at least capture that single real date.

Tags (2)
0 Karma

gacerioni
Engager

Hello!

It will ignore all settings based on the text(raw) event. Also, it follows the same rule as if you put "NONE".

0 Karma

hazekamp
Builder

V,

I believe setting DATETIME_CONFIG=CURRENT or DATETIME_CONFIG=NONE will ignore TIME_PREFIX/TIME_FORMAT (you can only use one or the other; not one then the other).

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...