Trying to extract unique values from a column and appear them in the dropdown menu
index=main source=traffic_information
| search * traffic_location
| fields traffic_location
| dedup traffic_location
| eval traffic_location=split(traffic_location, " ")
| eval field1=mvindex(traffic_location,0)
| stats values(field1)
So far I dont see anything, but this perfectly works fine when I use the same command in splunk search, but in dashboard it doesnt work.
Please help.
Thanks
↧