<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to insert a dynamic dropdown using CSV as a lookup? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451397#M78271</link>
    <description>&lt;P&gt;@jadengoho deduping both fields yielded me results. Thanks for the help.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2018 14:38:22 GMT</pubDate>
    <dc:creator>rakeshyv0807</dc:creator>
    <dc:date>2018-07-19T14:38:22Z</dc:date>
    <item>
      <title>How to insert a dynamic dropdown using CSV as a lookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451390#M78264</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to insert a dynamic dropdown for the dashboard I have. Please find below the use case that I have which I want to achieve using splunk and the issue I am facing: &lt;/P&gt;

&lt;P&gt;I have a lookup csv file that is loaded into splunk which contains two columns one is 'user friendly app name' (this is the name that I am going to display in the dropdown) and second is 'actual app name' (this is the value associated to each user friendly app name listed in dropdown). When I select the 'user friendly app name' from the dropdown what I need splunk to do it get the 'actual app name' that is associated to the user friendly name and insert that value in the searches that I have on the dashboard. &lt;/P&gt;

&lt;P&gt;I could achieve this using the ' Static Options' where I can specify name-value pairs for all the apps. However, I have hundreds of app names to list down and there will be many new apps to add in future. &lt;/P&gt;

&lt;P&gt;Right now I have the following XML source for the dropdown: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="field1" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Application Name&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;O365&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;App_Name&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;App_Name&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt; |inputlookup Aappmapping_lookup.csv | table  App_Name &amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the above search query I can list the values in dropdown but I am unable to get the associated actual app name and insert that in my searches.&lt;/P&gt;

&lt;P&gt;Can anyone help me?  Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 20:36:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451390#M78264</guid>
      <dc:creator>rakeshyv0807</dc:creator>
      <dc:date>2018-07-18T20:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a dynamic dropdown using CSV as a lookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451391#M78265</link>
      <description>&lt;P&gt;As I understand your question. &lt;BR /&gt;
1) You have a lookup csv&lt;BR /&gt;
2) column1 (Display Name) : column2 (actual name)&lt;/P&gt;

&lt;P&gt;here is my solution :&lt;BR /&gt;
 you can set the&lt;BR /&gt;
   as column 1 : since it was the label name&lt;BR /&gt;
   as column 2 : since this was the value you want to be input in your searches&lt;BR /&gt;
hope this works for you&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 01:07:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451391#M78265</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2018-07-19T01:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a dynamic dropdown using CSV as a lookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451392#M78266</link>
      <description>&lt;P&gt;@jadengoho Can you please elaborate your solution. You mentioned &lt;/P&gt;

&lt;P&gt;you can set the&lt;BR /&gt;
as column 1 : since it was the label name&lt;BR /&gt;
as column 2 : since this was the value you want to be input in your searches&lt;/P&gt;

&lt;P&gt;What do I need to set column 1 &amp;amp; column 2?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 02:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451392#M78266</guid>
      <dc:creator>rakeshyv0807</dc:creator>
      <dc:date>2018-07-19T02:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a dynamic dropdown using CSV as a lookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451393#M78267</link>
      <description>&lt;P&gt;I have a lookup csv file that is loaded into splunk which contains two columns one&lt;/P&gt;

&lt;P&gt;is 'user friendly app name' (this is the name that I am going to display in the dropdown) : &lt;STRONG&gt;COLUMN ONE&lt;/STRONG&gt;&lt;BR /&gt;
 second is 'actual app name' (this is the value associated to each user friendly app name listed dropdown). : &lt;STRONG&gt;COLUMN TWO&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;When I select the 'user friendly app name' from the dropdown what I need splunk to do it get the 'actual app name' that is associated to the user friendly name and insert that value in the searches that I have on the dashboard.&lt;/P&gt;

&lt;P&gt;You have &lt;BR /&gt;
COLUMN ONE= 'user friendly app name' &lt;BR /&gt;
COLUMN TWO= 'actual app name'&lt;BR /&gt;
And what you want to display is the COLUMN ONE but you want to get the value of COLUMN TWO which is associates in the column one &lt;/P&gt;

&lt;P&gt;example:&lt;/P&gt;

&lt;P&gt;COLUMN_ONE      COLUMN_TWO&lt;BR /&gt;
mypet1                           dog&lt;BR /&gt;
mypet2                           cat&lt;BR /&gt;
mypet3                           fish&lt;/P&gt;

&lt;P&gt;drilldown will display "mypet1" and it would insert the search "dog"&lt;BR /&gt;
drilldown will display "mypet2" and it would insert the search "cat" ......&lt;BR /&gt;
basically you can set the the drilldown.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;fieldForLabel COLUMN_ONE fieldForLabel&lt;/STRONG&gt;      : it says LABEL&lt;BR /&gt;
  &lt;STRONG&gt;fieldForValue COLUMN_TWO fieldForValue&lt;/STRONG&gt;    : it says VALUE&lt;/P&gt;

&lt;P&gt;sorry for that "TAGS (&amp;lt;,&amp;gt;)" was removed by the splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451393#M78267</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-09-29T20:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a dynamic dropdown using CSV as a lookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451394#M78268</link>
      <description>&lt;P&gt;Hello @rakeshyv0807, &lt;/P&gt;

&lt;P&gt;the input configuration will help you there.&lt;/P&gt;

&lt;P&gt;In the &lt;CODE&gt;&amp;lt;fieldForLabel&amp;gt;&lt;/CODE&gt; tag, place the name of the column containing the 'user friendly' name&lt;BR /&gt;
In the &lt;CODE&gt;&amp;lt;fieldForValue&amp;gt;&lt;/CODE&gt; tag, place the name of the column containing the app identifier to be used by Splunk.&lt;/P&gt;

&lt;P&gt;ANd do not forget to add both column names in the query (right now, you have only one in the &lt;CODE&gt;table&lt;/CODE&gt;).&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 06:49:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451394#M78268</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2018-07-19T06:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a dynamic dropdown using CSV as a lookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451395#M78269</link>
      <description>&lt;P&gt;@jadengoho Thanks, I have changed my dropdown settings like the way you suggested and I am getting ' &amp;gt; Blockquote Duplicate values causing conflict' &amp;gt; Blockquote error. Is there anything else that I need to change?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:29:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451395#M78269</guid>
      <dc:creator>rakeshyv0807</dc:creator>
      <dc:date>2018-07-19T14:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a dynamic dropdown using CSV as a lookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451396#M78270</link>
      <description>&lt;P&gt;Thanks, I have changed my dropdown settings like the way you suggested and I am getting ''&lt;STRONG&gt;Duplicate values causing conflict&lt;/STRONG&gt; '' error. Is there anything else I need to change?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:30:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451396#M78270</guid>
      <dc:creator>rakeshyv0807</dc:creator>
      <dc:date>2018-07-19T14:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a dynamic dropdown using CSV as a lookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451397#M78271</link>
      <description>&lt;P&gt;@jadengoho deduping both fields yielded me results. Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-insert-a-dynamic-dropdown-using-CSV-as-a-lookup/m-p/451397#M78271</guid>
      <dc:creator>rakeshyv0807</dc:creator>
      <dc:date>2018-07-19T14:38:22Z</dc:date>
    </item>
  </channel>
</rss>

