Splunk Search

Is there way to generate list of date for given month in Splunk

asanka
New Member

Is there way to generate list of date for given month in Splunk

Tags (1)
0 Karma
1 Solution

cmerriman
Super Champion

It really depends on what you're asking. This is a fairly vague question.

If you're looking for a list of all dates between a month chosen in a date picker, for instance, something like this would work:

|gentimes start=-1|addinfo|eval date=strftime(mvrange(info_min_time,info_max_time,"1d"),"%F")|mvexpand date|table date

something similar could be applied if you're looking for dates reporting in a set of data. To really help, it'd be great if you could offer more details, thanks 🙂

View solution in original post

asanka
New Member

This is perfectly work for me. Thanks @cmerriman

0 Karma

cmerriman
Super Champion

It really depends on what you're asking. This is a fairly vague question.

If you're looking for a list of all dates between a month chosen in a date picker, for instance, something like this would work:

|gentimes start=-1|addinfo|eval date=strftime(mvrange(info_min_time,info_max_time,"1d"),"%F")|mvexpand date|table date

something similar could be applied if you're looking for dates reporting in a set of data. To really help, it'd be great if you could offer more details, thanks 🙂

somesoni2
Revered Legend

In what format you'd input the month, with year?

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

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