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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

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