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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...