<?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: help required on lookup in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/help-required-on-lookup/m-p/408023#M6457</link>
    <description>&lt;P&gt;Can someone help please&lt;/P&gt;</description>
    <pubDate>Tue, 26 Feb 2019 12:37:49 GMT</pubDate>
    <dc:creator>deepikasounda</dc:creator>
    <dc:date>2019-02-26T12:37:49Z</dc:date>
    <item>
      <title>help required on lookup</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-required-on-lookup/m-p/408019#M6453</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I used the below to lookup for a query from a lookup file/table and execute it.&lt;/P&gt;

&lt;P&gt;Lookup file  - search_queries.csv with Name and Search has two columns.&lt;BR /&gt;
[where search has the query that has to be selected upon selecting the corresponding Name]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
1.   &amp;lt;label&amp;gt;Run Search from Lookup&amp;lt;/label&amp;gt;
2.   &amp;lt;fieldset submitButton="false"&amp;gt;
3.     &amp;lt;input type="time" token="tokTime" searchWhenChanged="true"&amp;gt;
4.       &amp;lt;label&amp;gt;Select Time&amp;lt;/label&amp;gt;
5.       &amp;lt;default&amp;gt;
6.         &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
7.         &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
8.       &amp;lt;/default&amp;gt;
9.     &amp;lt;/input&amp;gt;
10.   &amp;lt;/fieldset&amp;gt;
11.   &amp;lt;row&amp;gt;
12.     &amp;lt;panel&amp;gt;
13.       &amp;lt;title&amp;gt;Search Based on Lookup&amp;lt;/title&amp;gt;
14.       &amp;lt;input type="dropdown" token="tokSearchQuery" searchWhenChanged="true"&amp;gt;
15.         &amp;lt;label&amp;gt;Select Search Query (from lookup)&amp;lt;/label&amp;gt;
16.         &amp;lt;fieldForLabel&amp;gt;Name&amp;lt;/fieldForLabel&amp;gt;
17.         &amp;lt;fieldForValue&amp;gt;Search&amp;lt;/fieldForValue&amp;gt;
18.         &amp;lt;search&amp;gt;
19.           &amp;lt;query&amp;gt;| inputlookup search_queries.csv | table Name Search&amp;lt;/query&amp;gt;
20.         &amp;lt;/search&amp;gt;
21.       &amp;lt;/input&amp;gt;
22.       &amp;lt;chart&amp;gt;
23.         &amp;lt;search&amp;gt;
24.           &amp;lt;query&amp;gt;$tokSearchQuery$&amp;lt;/query&amp;gt;
25.           &amp;lt;earliest&amp;gt;$tokTime.earliest$&amp;lt;/earliest&amp;gt;
26.           &amp;lt;latest&amp;gt;$tokTime.latest$&amp;lt;/latest&amp;gt;
27.         &amp;lt;/search&amp;gt;
28.         &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;minmax&amp;lt;/option&amp;gt;
29.         &amp;lt;option name="charting.chart.stackMode"&amp;gt;stacked&amp;lt;/option&amp;gt;
30.         &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
31.       &amp;lt;/chart&amp;gt;
32.     &amp;lt;/panel&amp;gt;
33.   &amp;lt;/row&amp;gt;
34. &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now my requirement is in my lookup file there are going to be three columns - Name,SubName and Search.&lt;BR /&gt;
[for the match Name and SubName the corresponding Search has to be executed]&lt;/P&gt;

&lt;P&gt;Kindly help me with this.&lt;/P&gt;

&lt;P&gt;Your response at the earliest will be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 06:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-required-on-lookup/m-p/408019#M6453</guid>
      <dc:creator>deepikasounda</dc:creator>
      <dc:date>2019-02-26T06:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: help required on lookup</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-required-on-lookup/m-p/408020#M6454</link>
      <description>&lt;P&gt;Concatenate the name and subname columns into a single column you then use for the dropdown label?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 08:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-required-on-lookup/m-p/408020#M6454</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-02-26T08:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: help required on lookup</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-required-on-lookup/m-p/408021#M6455</link>
      <description>&lt;P&gt;Hi,there are lot more varaitions for it.&lt;BR /&gt;
So doing that will not be possible.&lt;/P&gt;

&lt;P&gt;Could you help me without concatenating the columns please&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 09:42:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-required-on-lookup/m-p/408021#M6455</guid>
      <dc:creator>deepikasounda</dc:creator>
      <dc:date>2019-02-26T09:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: help required on lookup</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-required-on-lookup/m-p/408022#M6456</link>
      <description>&lt;P&gt;Well, then you could try adding another dropdown input that contains the names and then use that token to parametrize the dropdown query that pulls up the subname (and search). I'm not 100% sure though whether that is possible (on dropdown depending on the other) and don't have time at the moment to experiment myself. So just give that a try (or wait for someone else to contribute to this discussion).&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 09:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-required-on-lookup/m-p/408022#M6456</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-02-26T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: help required on lookup</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-required-on-lookup/m-p/408023#M6457</link>
      <description>&lt;P&gt;Can someone help please&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 12:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-required-on-lookup/m-p/408023#M6457</guid>
      <dc:creator>deepikasounda</dc:creator>
      <dc:date>2019-02-26T12:37:49Z</dc:date>
    </item>
  </channel>
</rss>

