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!

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...