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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...