Dashboards & Visualizations

Custom dropdown for months

anooshac
Communicator

Hi All,

I have prepared a dropdown using this solution- https://community.splunk.com/t5/Dashboards-Visualizations/Custom-Time-dropdown/m-p/677806#M55517

From this solution i used this query to create the dropdown.

| makeresults
| addinfo 
| eval date=mvrange(info_min_time,info_max_time,"1mon") 
| mvexpand date
| sort - date
| eval Month=strftime(date,"%b-%y")
| table Month date

How to use this in the query so that the search will take only selected month.

Also for some other charts the query should take the date till the selected month. For example if Jan 24 is selected, the chart should show data till dec 23.

How can i achieve these 2 requirements? can anyone help me!

 

Labels (3)
Tags (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Your dropdown will shown some labels which are associated with values. When the label is selected, the value is placed in the token associated with the dropdown. Use this token in the searches for your panels. How you do this depends very much on your data / events and what it is that you are trying to achieve for each panel. At the moment, only you know the detail of what this is.

0 Karma

anooshac
Communicator

Hi @ITWhisperer ,

Thank you so much for the info. I referred the example mentioned above and i was able to get the answer.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...