Getting Data In

how do i get splunk to recognise timestamp of my log

deepthi5
Path Finder

I have a time stamp logged into my my SNMP log like the below

[6844 0502 083830508 SNMP] BAXSnmpSTTWorker::HandleSystemOperatorEvent(), Entering supervisor (\SNMP\STT) // BAXS04202.CPP(164)

[6844 0502 083830508 SNMP]-->In this 0502 is my Month and date followed by 08:HH 38:MM 30:SS 508 :ms how do i tell splunk to understand this as timestamp while indexing my log into SPLUNK

Thanks
Deepthi

Tags (2)
0 Karma

inventsekar
SplunkTrust
SplunkTrust

please try this stanza in props.conf:

[host::hostname]
    TIME_PREFIX = \[d{4}
    TIME_FORMAT = %m%d %H%M%S%Q

Best Regards,
Sekar

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !

deepthi5
Path Finder

I have tried the same in props.conf but using [sourcetype] but was not successful

0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi Deepthi, may i know your props.conf please. are you using line_breaks and other things?!?

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

somesoni2
Revered Legend

And if the props.conf was setup on Indexer/Heavy Forwarder and was restarted after making the change? Also, it'll only work for any new data that'll come after you made the change.

0 Karma
Get Updates on the Splunk Community!

Splunk Classroom Chronicles: Training Tales and Testimonials (Episode 2)

Welcome to the "Splunk Classroom Chronicles" series, created to help curious, career-minded learners get ...

Index This | I am a number but I am countless. What am I?

January 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  Happy New Year! We’re ...

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience

PLATFORM TECH TALKS What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience Thursday, February 27, ...