Splunk Enterprise

timestamp strftime issues

walsborn
Path Finder

Hi all,

I keep getting "DateParserVerbose [6827 merging] - Failed to parse timestamp in first MAX_TIMESTAMP_LOOKAHEAD (75) characters of event. Defaulting to timestamp of previous event" warnings.

The time stamp in the logs looks like: 2021/10/28T16:06:08.183-07:00

props.conf looks like:

DETERMINE_TIMESTAMP_DATE_WITH_SYSTEM_TIME = true
MAX_TIMESTAMP_LOOKAHEAD = 75
MAX_DAYS_AGO = 36500
MAX_DAYS_HENCE = 36500
TIME_FORMAT = %d-%b-%y %I.%M.%S.%6Q %p
SHOULD_LINEMERGE = false
TRUNCATE = 500000

Anyone know what my time_format should be instead?

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

That TIME_FORMAT isn't even close so it' s no wonder Splunk is confused.  Try this one.

TIME_FORMAT = %Y/%m/%dT%H:%M:%S.%3N%:z

See https://docs.splunk.com/Documentation/Splunk/8.2.3/SearchReference/Commontimeformatvariables for the metacharacters used in TIME_FORMAT.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

walsborn
Path Finder

Yeah I don't know what I'm doing, but thanks for pointing that out.  I appreciate the untactful assist.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

That TIME_FORMAT isn't even close so it' s no wonder Splunk is confused.  Try this one.

TIME_FORMAT = %Y/%m/%dT%H:%M:%S.%3N%:z

See https://docs.splunk.com/Documentation/Splunk/8.2.3/SearchReference/Commontimeformatvariables for the metacharacters used in TIME_FORMAT.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with Brett Adams

In our third Spotlight feature, we're excited to shine a light on Brett—a Splunk consultant, innovative ...

Index This | What can you do to make 55,555 equal 500?

April 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...