Getting Data In

Index the timestamp present in log file

rbw78
Communicator

hello,

I got a question regarding the field indexed by splunk when an event is received on splunk server.
I would like to index and use the timestamp present into the logs I get from multiple sources.
All those logs are stored into the default DB.

There's 3 kind of timestamps present in the 3 diffrents logs source which look like this :

  • 2012-07-25T08:07:30
  • 1343250669001 => This is epoch time
  • Jul 23 12:09:43

3 eventtype has been created for each.

Splunk is currently indexing these logs at the time it were received on the splunk server.
The purpose would be to do search on splunk from these events using the time present in the logs file.

I tried to follow the instrctions present in this page but it doesen't seems to work, i'm pretty sure i'm doing something wrong.
http://docs.splunk.com/Documentation/Splunk/4.3.3/Data/Configuretimestamprecognition

Here's the first entry i made on the props.conf file.

[EVENT_Spyware]
TIME_PREFIX = (?i) .*?="(?P<Spyware>\d+\-\d+\-\d+\w+:\d+:\d+)\w+"
TIME_FORMAT = %Y-%m-%dT%H:%M:%S
TZ = Europe/Paris
TRANSFORMS-Virus = Spyware

Could someone help please ?
Thanks.

Tags (3)
0 Karma

dwaddle
SplunkTrust
SplunkTrust

Is EVENT_Spyware the sourcetype of the data? Can you update your question with a sample event?

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...