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!

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