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
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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