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 May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

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