Getting Data In

How to configure props.conf to recognize the exact timestamp format hh:mm.ss,sss in our data?

msantich
Path Finder

events from a particular source have timestamps formatted as follows: hh:mm.ss,ssss - example
02:07.21,0241

this is a strange format to be sure, and splunk does a pretty good job at "guessing" and yeilds
02:07:00.000

but our security guys aren't satisfied with this and they'd like splunks timestamp to match the event timestamp

in looking at strptime() documentation (by the way we're at splunk version 4.2.5), I see examples that suggest that using strptime() will limit me to precision year/month/day. I'm not seeing how to specifiy hour, minute, second, decimal second.

any ideas to help.

thanks so much
MichaelS

1 Solution

martin_mueller
SplunkTrust
SplunkTrust

In props.conf you should set this under that sourcetype:

TIME_FORMAT = %H:%M.%S,%4N

That's assuming the 0241 part is 100-microsecond precision (1/10000th second).

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

In props.conf you should set this under that sourcetype:

TIME_FORMAT = %H:%M.%S,%4N

That's assuming the 0241 part is 100-microsecond precision (1/10000th second).

msantich
Path Finder

Thank you sir.

0 Karma
Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...