Knowledge Management

TIME_FORMET in props.conf

chvenu17
Path Finder

My csv source data file contains below timestamp . how can we convert the timestamp into TIME_FORMET representation in props.conf file

18-AUG-21 11.40.00.027 PM"

Labels (1)
0 Karma

chvenu17
Path Finder

Thanks for the reply 

 

I have tried this, for some some reason splunk ignoring %p

props.file
TIME_FORMAT=%d-%b-%y %H.%M.%S.%3N %p
MAX_TIMESTAMP_LOOKAHEAD = 24
TIME_PREFIX=^"

Sample data
DATE
"18-AUG-21 11.41.10.027 PM"

o/p from splunk
_time SAMPLE_TIME
2021-08-18 11:41:10.027 18-AUG-21 11.41.10.027 PM
2021-08-18 11:41:10.027 18-AUG-21 11.41.10.027 PM

0 Karma

isoutamo
SplunkTrust
SplunkTrust
Hi
please try to increase MAX_TIMESTAMP_LOOKAHEAD so it cover the whole timestamp from the beginning of line. Try e.g. 30 as if I calculate it right it must be 26 at least to cover it.
r. Ismo
0 Karma

manjunathmeti
Champion
0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...