Getting Data In

Timestamp issues

skirkpatrick
New Member

I have a timestamp that is not coming incorrectly. Splunk is reading the seconds portion of time in my event as minutes.

COMPUTER1, 09/15/2014, 0:00:01 comes across as

9/15/2015 12:01:00 AM

How do I get it to see the seconds as seconds and not minutes?

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Use these settings in props.conf for that sourcetype:

...
MAX_TIMESTAMP_LOOKAHEAD=30
TIME_FORMAT=%m/%d/%Y, %k:%M:%S
TIME_PREFIX=^\S+,

The important bit is the %k for hours not prefixed by a zero when in single digits, by default Splunk looks for zero-prefixed hours only.

0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security: Your Command Center for PCI DSS Compliance

Every security professional knows the drill. The PCI DSS audit is approaching, and suddenly everyone's asking ...

Developer Spotlight with Guilhem Marchand

From Splunk Engineer to Founder: The Journey Behind TrackMe    After spending over 12 years working full time ...

Cisco Catalyst Center Meets Splunk ITSI: From 'Payments Are Down' to Root Cause in ...

The Problem: When Networks and Services Don't Talk Payment systems fail at a retail location. Customers are ...