Getting Data In

How to get date and time from this format?

mdzmuran
Observer

I have date and time in this format,

[2010/01/14@08:43:17.561+0100]

How to read it correctly into Splunk?

0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Give this a try (props.conf on your indexer/heavy forwarder)

[yoursourcetype]
 ....other line breaking stuffs...
 TIME_PREFIX = \[
 TIME_FORMAT = %Y/%m/%d@%H:%M:%S.%3N%z
 MAX_TIMESTAMP_LOOKAHEAD = 28

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

Give this a try (props.conf on your indexer/heavy forwarder)

[yoursourcetype]
 ....other line breaking stuffs...
 TIME_PREFIX = \[
 TIME_FORMAT = %Y/%m/%d@%H:%M:%S.%3N%z
 MAX_TIMESTAMP_LOOKAHEAD = 28
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...