Splunk Search

Is there a upper limit to dashboard dropdown value fetch from lookup file

manas
Explorer

I have a lookup file . It has 2 columns : Service and Entity and 500+ rows. Service has 34 unique values and Entity has 164. 

I have a dashboard where for search i want to use values from this lookup as input to search criteria. I have following logic .I get the dropdown values for "service" without any issues but not for "entity" when it's same lookup file ,same logic.

 

Any ideas ?

Snippet :

<input type="dropdown" token="Service" searchWhenChanged="true">
<label>Service</label>
<search>
<query>
|inputlookup metadata.csv | dedup service
| stats dc(service) by service
</query>
</search>
<choice value="*">*</choice>
<default>*</default>
<initialValue>*</initialValue>
</input>

<input type="dropdown" token="Entity" searchWhenChanged="true">
<label>Entity</label>
<search>
<query>
|inputlookup metadata.csv | dedup entity
| stats dc(entity) by entity
</query>
</search>
<choice value="*">*</choice>
<default>*</default>
<initialValue>*</initialValue>
</input>

 

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @manas,

at first you culd simplify your searches:

e.g. the first:

| inputlookup metadata.csv 
| dedup service
| sort service
| table service

then in the second dropdown you could use the result of the first to filter results in this way:

<input type="dropdown" token="Service" searchWhenChanged="true">
   <label>Service</label>
   <search>
      <query>
         | inputlookup metadata.csv 
         | dedup service
         | sort service
         | table service
      </query>
   </search>
   <choice value="*">*</choice>
   <default>*</default>
   <initialValue>*</initialValue>
</input>

<input type="dropdown" token="Entity" searchWhenChanged="true">
   <label>Entity</label>
   <search>
      <query>
         | inputlookup metadata.csv WHERE Service="$Service$"
         | dedup entity
         | sort entity
         | table entity
      </query>
   </search>
   <choice value="*">*</choice>
   <default>*</default>
   <initialValue>*</initialValue>
</input>

Ciao.

Giuseppe

View solution in original post

0 Karma

manas
Explorer

Or is it possible that issue is related to same lookup file being referenced for next input dropdown subsequently causing issue.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @manas,

at first you culd simplify your searches:

e.g. the first:

| inputlookup metadata.csv 
| dedup service
| sort service
| table service

then in the second dropdown you could use the result of the first to filter results in this way:

<input type="dropdown" token="Service" searchWhenChanged="true">
   <label>Service</label>
   <search>
      <query>
         | inputlookup metadata.csv 
         | dedup service
         | sort service
         | table service
      </query>
   </search>
   <choice value="*">*</choice>
   <default>*</default>
   <initialValue>*</initialValue>
</input>

<input type="dropdown" token="Entity" searchWhenChanged="true">
   <label>Entity</label>
   <search>
      <query>
         | inputlookup metadata.csv WHERE Service="$Service$"
         | dedup entity
         | sort entity
         | table entity
      </query>
   </search>
   <choice value="*">*</choice>
   <default>*</default>
   <initialValue>*</initialValue>
</input>

Ciao.

Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @manas,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...