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!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

🍂 Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...

Splunk Admins and App Developers | Earn a $35 gift card!

Splunk, in collaboration with ESG (Enterprise Strategy Group) by TechTarget, is excited to announce a ...