Dashboards & Visualizations

How to pass value to extracted field using dropdown?

onthakur
Engager

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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...