Dashboards & Visualizations

How to pass value to extracted field using dropdown?

onthakur
Explorer

Friends,

I have extracted the field "ussdcode" from xml using "xmlkv" and renamed it to "UssdCode" . Now I want to pass value to "UssdCode" using dropdown list. I have also created "UssdCode_Token" in dropdown and have provided static value "ALL =* " in dropdown.

can someone plz help me with filtering the data using dropdown?

index=masapi sourcetype = myaccountservices-api_reporting_log ussdcode
AND StatusCode=$StatusCode_token$
|eval temp=split(_raw,":")
|eval trx_id=mvindex(temp,3)
|dedup trx_id
|xmlkv
|rename ussdcode as UssdCode
|stats Count by UssdCode,StatusCode
| addcoltotals Count labelfield="StatusCode"

Labels (2)
0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...