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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...