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!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...