Getting Data In

TimeStamp problem

geantvert007
Explorer

Hi,

I have a timestamp problem on Splunk.
I am working with log file who looks like :

numberline;date;ipsrc;ipdst
102;13Jan2015;10.10.10.10;12.12.12.12

On splunk the date is 15 january but on the raw date we are in 13 january ...
I know that I have to configure propers.config,date_time.xml ect but what is the command to extract the date without space correctly ?

Thanks

Steve

Tags (1)
0 Karma
1 Solution

renjith_nair
Legend

If you are trying to extract the date from your event, ie 13Jan2015, you can use

[<spec>]
TIME_PREFIX = \d{3};
TIME_FORMAT = %d%b%Y

where spec can be host,source,sourcetype

Reference : http://docs.splunk.com/Documentation/Splunk/6.1/Data/Configuretimestamprecognition

---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

renjith_nair
Legend

If you are trying to extract the date from your event, ie 13Jan2015, you can use

[<spec>]
TIME_PREFIX = \d{3};
TIME_FORMAT = %d%b%Y

where spec can be host,source,sourcetype

Reference : http://docs.splunk.com/Documentation/Splunk/6.1/Data/Configuretimestamprecognition

---
What goes around comes around. If it helps, hit it with Karma 🙂

geantvert007
Explorer

Thanks renjith.nair,
I will try this.

On the splunk document they talk about the props.conf but I have use the local or the default props.config to enable the extraction ?

0 Karma

renjith_nair
Legend

For all your configuration, use local. Also please not that you might need to adjust the time prefix regex to match all your events

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Get Updates on the Splunk Community!

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

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...