Dashboards & Visualizations

How to create dropdown list to remove * option?

erica
Explorer

I have a dropdown list with manually specified choices - A, C, D and All, but somehow splunk will auto populate another option * as default in my dropdown list after saving it.

The reason why I do not want * to be representing All in my dashboard is because Type might content B data that I want to exclude from being shown on my dashboard.

 

Anyone knows how to remove this * option?  Thank you

 

 

<input type="dropdown" token="contentType">
<label>Type</label>
<choice value="A">A</choice>
<choice value="C">C</choice>
<choice value="D">D</choice>
<choice value="ALL" OR content_type="C" OR content_type="D">All</choice>
<prefix>(</prefix>
<suffix>)</suffix>
<default>"A" OR content_type="C" OR content_type="D"</default>
<initialValue>""A" OR content_type="C" OR content_type="D"</initialValue>
</input>

 

 

 

erica_0-1654495529810.png

erica_1-1654495576249.png

 

Labels (1)
Tags (1)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@erica 

Can you please try this?

<input type="dropdown" token="contentType">
      <label>Type</label>
      <choice value="A">A</choice>
      <choice value="C">C</choice>
      <choice value="D">D</choice>
      <choice value='"ALL" OR content_type="C" OR content_type="D"'>All</choice>
      <prefix>(</prefix>
      <suffix>)</suffix>
      <default>&quot;A&quot; OR content_type=&quot;C&quot; OR content_type=&quot;D&quot;</default>
      <initialValue>&quot;A&quot; OR content_type=&quot;C&quot; OR content_type=&quot;D&quot;</initialValue>
    </input>

 

I hope this will help you.

Thanks
KV
▄︻̷̿┻̿═━一   😉

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

View solution in original post

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@erica 

Can you please try this?

<input type="dropdown" token="contentType">
      <label>Type</label>
      <choice value="A">A</choice>
      <choice value="C">C</choice>
      <choice value="D">D</choice>
      <choice value='"ALL" OR content_type="C" OR content_type="D"'>All</choice>
      <prefix>(</prefix>
      <suffix>)</suffix>
      <default>&quot;A&quot; OR content_type=&quot;C&quot; OR content_type=&quot;D&quot;</default>
      <initialValue>&quot;A&quot; OR content_type=&quot;C&quot; OR content_type=&quot;D&quot;</initialValue>
    </input>

 

I hope this will help you.

Thanks
KV
▄︻̷̿┻̿═━一   😉

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

0 Karma
Get Updates on the Splunk Community!

ATTENTION!! We’re MOVING (not really)

Hey, all! In an effort to keep this Slack workspace secure and also to make our new members' experience easy, ...

Splunk Admins: Build a Smarter Stack with These Must-See .conf25 Sessions

  Whether you're running a complex Splunk deployment or just getting your bearings as a new admin, .conf25 ...

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...