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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...