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!

Security Highlights: September 2022 Newsletter

 September 2022 The Splunk App for Fraud Analytics (SFA) is now Splunk SupportedUse your existing Splunk ...

Platform Highlights | September 2022 Newsletter

 September 2022 What’s New in 9.0 and How to UpgradeGet a walk through of what is new Splunk Enterprise 9.0 ...

Observability Highlights | September 2022 Newsletter

 September 2022 Splunk Observability SuiteAccess to "Classic" SignalFx Interface Will be Removed on Sept 30, ...