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?

seedaffodil
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

musskopf
Builder

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

Cheers,

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...