Dashboards & Visualizations

Dropdown not working in the panels

aditsss
Motivator

Hi Everyone,

I have one multiselect previously which was working fine in panels.

when I change multiselect to dropdown its not working in the panels.

Can someone guide me on that.

Below is my current code:

<input type="dropdown" token="usr" searchWhenChanged="true">
<label>NiFi_Users</label>
<choice value="*">All Users</choice>
<search>
<query>index=abc sourcetype=xyz source="user.log" process-groups | rex "\&lt;(?&lt;Request_User&gt;\w+)\&gt;\&lt;"|stats count by Request_User</query>
<earliest>-60d@d</earliest>
<latest>now</latest>
</search>
<fieldForLabel>Request_User</fieldForLabel>
<fieldForValue>Request_User</fieldForValue>
<prefix>(</prefix>
<suffix>)</suffix>
<initialValue>*</initialValue>
<default>*</default>
</input>

PANEL CODE:

<panel>
<chart>
<title>NiFi_Users</title>
<search>
<query>index=abc sourcetype=xyz source="user.log" process-groups | rex "\&lt;(?&lt;Request_User&gt;\w+)\&gt;\&lt;"|chart count(Request_User) as "Users" by Request_User|search $usr$</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>

Can someone guide me on that.

What is wrong.

Labels (3)
0 Karma

manjunathmeti
Champion

hi @aditsss,
You need to update prefix and remove <suffix>)</suffix>

 

<prefix>Request_User=</prefix>

 

ITWhisperer
SplunkTrust
SplunkTrust
<prefix>Request_User="</prefix>
<suffix>"</suffix>
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...