<?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 How to append a query based on a variable chosen from a drop-down form? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-query-based-on-a-variable-chosen-from-a-drop/m-p/252710#M75626</link>
    <description>&lt;P&gt;I need to append the query based on the defined variable.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I declared a variable for the drop-down using token="TEST"&lt;/LI&gt;
&lt;LI&gt;I used $TEST in the query for a panel. What I want to do is like the following;
if $TEST == "E1" query1
else query 2&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Please let me know whether it is possible in XML or in a search.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2016 23:00:13 GMT</pubDate>
    <dc:creator>sumyatnoepwint</dc:creator>
    <dc:date>2016-10-12T23:00:13Z</dc:date>
    <item>
      <title>How to append a query based on a variable chosen from a drop-down form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-query-based-on-a-variable-chosen-from-a-drop/m-p/252710#M75626</link>
      <description>&lt;P&gt;I need to append the query based on the defined variable.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I declared a variable for the drop-down using token="TEST"&lt;/LI&gt;
&lt;LI&gt;I used $TEST in the query for a panel. What I want to do is like the following;
if $TEST == "E1" query1
else query 2&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Please let me know whether it is possible in XML or in a search.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 23:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-query-based-on-a-variable-chosen-from-a-drop/m-p/252710#M75626</guid>
      <dc:creator>sumyatnoepwint</dc:creator>
      <dc:date>2016-10-12T23:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to append a query based on a variable chosen from a drop-down form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-query-based-on-a-variable-chosen-from-a-drop/m-p/252711#M75627</link>
      <description>&lt;P&gt;Hi @sumyatnoepwint,&lt;BR /&gt;
I believe the "condition" element should help you handle various input selections. See&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/PanelreferenceforSimplifiedXML#condition_.28input.29"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/PanelreferenceforSimplifiedXML#condition_.28input.29&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can also check out the form input examples in the Dashboard Examples App &lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 00:19:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-query-based-on-a-variable-chosen-from-a-drop/m-p/252711#M75627</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-10-13T00:19:44Z</dc:date>
    </item>
  </channel>
</rss>

