Splunk Dev

dropdown

dall
Path Finder

i have one dropdown with month and year how can i separate and make 2 dropdown , one for month another one for year

 

my query is this

| inputlookup ... | search TITLE = "*Microsoft*" OR TITLE = "*Windows*"

| eval new_date=strftime(strptime(PUBLISHED_DATETIME,"%Y-%m-%d"),"%Y %b")
| dedup new_date
| table new_date PUBLISHED_DATETIME
| sort - new_date

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

This doesn't sound like the full story!

However, why not create your first dropdown with this query

| inputlookup ... | search TITLE = "*Microsoft*" OR TITLE = "*Windows*"

| eval new_date=strftime(strptime(PUBLISHED_DATETIME,"%Y-%m-%d"),"%Y")
| dedup new_date
| fields new_date
| sort - new_date

and your second dropdown with this query

| inputlookup ... | search TITLE = "*Microsoft*" OR TITLE = "*Windows*"

| eval new_date=strftime(strptime(PUBLISHED_DATETIME,"%Y-%m-%d"),"%b")
| dedup new_date
| fields new_date
| sort - new_date

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

This doesn't sound like the full story!

However, why not create your first dropdown with this query

| inputlookup ... | search TITLE = "*Microsoft*" OR TITLE = "*Windows*"

| eval new_date=strftime(strptime(PUBLISHED_DATETIME,"%Y-%m-%d"),"%Y")
| dedup new_date
| fields new_date
| sort - new_date

and your second dropdown with this query

| inputlookup ... | search TITLE = "*Microsoft*" OR TITLE = "*Windows*"

| eval new_date=strftime(strptime(PUBLISHED_DATETIME,"%Y-%m-%d"),"%b")
| dedup new_date
| fields new_date
| sort - new_date
Get Updates on the Splunk Community!

Observability | How to Think About Instrumentation Overhead (White Paper)

Novice observability practitioners are often overly obsessed with performance. They might approach ...

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...

The Great Resilience Quest: 10th Leaderboard Update

The tenth leaderboard update (11.23-12.05) for The Great Resilience Quest is out >> As our brave ...