Splunk Search

search the request if only it presents in certain date range

gowithwind22
New Member

I have a field called "request", I want to output all the log lines in history if the request value presents in certain date range. for example.

1/1/2018 10:00:00 x0
1/2/2018 11:00:00 x1
1/3/2018 10:00::00 x2
1/5/2018 10:00:00 x2
1/5/2018 11:00:00 x5

if 1/5/2018 if the date range, only x2, x5's history will return. Any idea how to do that?
PS: in the real world, the records' number is very large , there may be millions before the 1/1/2018 to the 1/5/2018.

Tags (1)
0 Karma

ddrillic
Ultra Champion

You can add to the query the following - earliest=1503982800&latest=1504760400. Please use the following for converting a date to an epoch time - Epoch & Unix Timestamp Conversion Tools

0 Karma

gowithwind22
New Member

my expected result is:
1/3/2018 10:00::00 x2
1/5/2018 10:00:00 x2
1/5/2018 11:00:00 x5

not 1/5/2018 10:00:00 x2
1/5/2018 11:00:00 x5

0 Karma
Get Updates on the Splunk Community!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...