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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...