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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...