Splunk Search

Is the time format in my sample data correct and how do I filter my search to see events within a certain time range?

New Member

We have logs that are like below:

11 Mar 2015 17:22:49,539 INFO  [pool-11-thread-4] timestamp=1426119768843 : abc=123 : efg=4a74922eb2463 : lmn=-125 : xyz=833c-646cb2476eb0

Is the date format used in the sample correct for searching in Splunk? If so, how can I do it?

I want to see all events between 11 Mar 2015 17:00 and 11 Mar 2015 17:30

0 Karma


If you're using everything as standard in Splunk, it should automatically index the events using the "11 Mar 2015 17:22:49,539" bit of your Logs and assume the date is in the local timezone as well.

To search for a specific period you could use the "Time Selection", that is just at the end of the search field and before the magnifier glass icon. Just go there and you'll see many options to filter the time.

An alternative method is to use time search modifier, which you specify as part of the search command... have a look here: http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/SearchTimeModifiers

For simple things the Time Selection is easier...