Getting Data In

How to extract timestamp( is in bold text ) from the below event inside a file. Attached the source file. Each file content is considered as single event. currently it is taking file modification time as timestamp of the event. how to prevent this.

srinathd
Contributor

How to extract timestamp( is in bold text ) from the below event inside a file. Attached the source file. Each file content is considered as single event. currently it is taking file modification time as timestamp of the event. how to prevent this.

20150121
1
082142
08:21:42:379
99324

admin2
emergencey.2
0
xyz.23015521
too many times

150121082142379

0 Karma

FritzWittwer_ol
Contributor

see http://docs.splunk.com/Documentation/Splunk/latest/Data/Handleeventtimestamps

using TIME_FORMAT = %d%m%Y%H%M%S

should do the trick

0 Karma

FritzWittwer_ol
Contributor

well the TIME_format is certainly wrong, what format is 150121082142379 seconds since the epoc seems not to fit as well

0 Karma

srinathd
Contributor

I tried with TIME_FORMAT. But it is not working.

0 Karma
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 ...