Splunk Search

What to do if i want to snap out data for some specific days?

firozalam49
New Member

for example: if it is saturday and i just want to see events of tuesday and wednesday. How to list event of these two days. Thank You

Tags (2)
0 Karma

cmerriman
Super Champion

you can always use the date picker on the right hand side next to the search box to pick the specific days you want (it searches based on indexed time), or you can create an eval based on another time field, something like:

|eval tuesday=relative_time(timefield,"@w2")|eval wednesday=relative_time(timefield,"@w3")|where _time>+tuesday AND _time<+wednesday
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...