Getting Data In

props.conf TIME_FORMAT for middle of the line DATETIME

splunk_zen
Builder

I'm having trouble recognizing the timestamp for a logs with this structure,
(field timestamp appears = none in Splunk fields column)

DEBUG [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3] 09 Dec 2014 22:00:03,760 (?:?) - Performing a clean update ...
DEBUG [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3] 09 Dec 2014 22:00:03,761 (?:?) - Delete Query: delete bla_bla
 INFO [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3] 09 Dec 2014 22:00:03,797 (?:?) - Records processed - total: 9, inserted: 9, skipped: 0
DEBUG [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3] 09 Dec 2014 22:00:03,808 (?:?) -

My props.conf

[spring_output]
NO_BINARY_CHECK=1
SHOULD_LINEMERGE = true
TIME_FORMAT = %d %b %Y %H:%M:%S,%3N
# Breaking events on lines like:  "DEBUG [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker:3] 09 Dec 2014 22:00:03,949"
TIME_PREFIX = ^\s*([A-Z])\w+ \[.*]\s+
MAX_TIMESTAMP_LOOKAHEAD=1
TZ=EST
BREAK_ONLY_BEFORE=^FATAL|^DEBUG|^ERROR|^INFO|^TRACE|^WARN|^ WARN|^ INFO|^CRIT|^ CRIT
MAX_EVENTS = 99999
TRUNCATE = 0
Tags (2)
0 Karma
1 Solution

splunk_zen
Builder

Really unsure why Splunk was choking on this but rebuilding it from anew has it now working as expected.


cat local/props.conf
[spring_output]
BREAK_ONLY_BEFORE = ^FATAL|^DEBUG|^ERROR|^INFO|^TRACE|^WARN|^ WARN|^ INFO|^CRIT|^ CRIT
MAX_TIMESTAMP_LOOKAHEAD = 1
NO_BINARY_CHECK = 1
TIME_FORMAT = %d %b %Y %H:%M:%S,%3N
TIME_PREFIX = ^\s*([A-Z])\w+ \[.*]\s+
TZ = EST
pulldown_type = 1

View solution in original post

0 Karma

splunk_zen
Builder

Really unsure why Splunk was choking on this but rebuilding it from anew has it now working as expected.


cat local/props.conf
[spring_output]
BREAK_ONLY_BEFORE = ^FATAL|^DEBUG|^ERROR|^INFO|^TRACE|^WARN|^ WARN|^ INFO|^CRIT|^ CRIT
MAX_TIMESTAMP_LOOKAHEAD = 1
NO_BINARY_CHECK = 1
TIME_FORMAT = %d %b %Y %H:%M:%S,%3N
TIME_PREFIX = ^\s*([A-Z])\w+ \[.*]\s+
TZ = EST
pulldown_type = 1

0 Karma

splunk_zen
Builder

Thanks somesoni2,
could have omitted that as it's only meant to speed up the indexing after I get the timestamp recognition working.
Unfortunately removing it still results in Splunk recognising 0 timestamps.

0 Karma

somesoni2
Revered Legend

Just get rid of this

AX_TIMESTAMP_LOOKAHEAD=1

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...