Splunk Search

How to set the the correct timestamp recognition and formatting in props.conf?

LuiesCui
Communicator

Hey guys, I'm new to splunk and I need ur help!!!

A .log file is loaded by forwarder to Splunk and is setting the wrong timestamp like this:

Actual time

15/03/03 23:59:43.000
Events

Mon,02Mar 23:59:43 Flow Control Request counter: [1]

So I tried to set the timestamp by editing the props.conf, like this:

[palink_log]
CHARSET = CN-GB
NO_BINARY_CHECK = true
priority = 1
TIME_PREFIX = \w{3},
TIME_FORMAT = %d%b %H:%M:%S

It doesn't help and there's no year data in events. How do I set the the correct timestamp manually for this single file?

0 Karma
1 Solution

srinathd
Contributor

Try this TIME_FORMAT=%a,%d%b %H:%M:%S

View solution in original post

0 Karma

srinathd
Contributor

Try this TIME_FORMAT=%a,%d%b %H:%M:%S

0 Karma

cpetterborg
SplunkTrust
SplunkTrust

If you do, get rid of the TIME_PREFIX, as it will conflict with the parsing of the time.

0 Karma

LuiesCui
Communicator

And how do I set year?

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...