Splunk Search

TIME_FORMAT AUTO works, but strptime defined does not for props.conf

gwalford
Path Finder

Why is TIME_FORMAT failing for importing data?

I get the error:

Could not use strptime to parse timestamp from "INFO: Manager: list: Lis"

Raw log is repeating sections like:

Sep 06, 2018 12:00:56 AM org.apache.catalina.core.ApplicationContext log
INFO: Manager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2018 12:01:56 AM org.apache.catalina.core.ApplicationContext log
INFO: Manager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2018 12:02:56 AM org.apache.catalina.core.ApplicationContext log
INFO: Manager: list: Listing contexts for virtual host 'localhost'

I am using the following values in props.conf:

SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
CHARSET=UTF-8
MAX_TIMESTAMP_LOOKAHEAD=24
disabled=false
TIME_PREFIX=^
LINE_BREAKER=^\w{3} \d{2}, \d{4} \d{2}:\d{2}:\d{2}
TIME_FORMAT=%b %d, %Y %H:%M:%S %p

Splunk will not accept my timeformat that I have defined above... and I am not sure why.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try these props.conf settings.

SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=UTF-8
MAX_TIMESTAMP_LOOKAHEAD=24
disabled=false
TIME_PREFIX=^
LINE_BREAKER=([\r\n]+)
TIME_FORMAT=%b %d, %Y %H:%M:%S %p
---
If this reply helps you, Karma would be appreciated.
0 Karma

gwalford
Path Finder

Unfortunately this still breaks in the same fashion. 😞

It is a good thought on the LINE_BREAKER though.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...