Getting Data In

How to configure time format in props.conf to parse the original time in the log?

rkeenan
Explorer

I've got logs that have time being sent to a syslog - the syslog is also putting a time on it to track when the logs hit the syslog.

I want Splunk to parse the original time in the log, and I've tried configuring the props.conf, but it seems that Splunk is still picking up the syslog prepended time. This is running on a HF and then being sent to Splunk cloud. Inputs sourcetype matches what I have in the props.conf.

I've run this through a local instance of Splunk to get the props.conf and it looks correct in the data preview - local is Windows, prod is Linux, but I wouldn't think that would matter for this.

Any suggestions on what to change would be greatly appreciated.

Example log line:

Apr 29 19:44:33 text SysLog[425355]: time="[29/Apr/2020:19:44:33 +0000]"

Current props:

[<sourcetype_name_here>]
SHOULD_LINEMERGE        = false
NO_BINARY_CHECK         = true
LINE_BREAKER            = ([\r\n]+)
TIME_FORMAT = %d/%b/%Y:%H:%M:%S %z
TIME_PREFIX = time\=\"\[
TZ                      = GMT
MAX_TIMESTAMP_LOOKAHEAD = 27
0 Karma

richgalloway
SplunkTrust
SplunkTrust

You put those props on the HF, right?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...