<?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 modify a part of a search based on two inputs selection? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-a-part-of-a-search-based-on-two-inputs-selection/m-p/394019#M171948</link>
    <description>&lt;P&gt;You can set new tokens( which will be used in search) based on the value selected in the radio button. See the example in following Splunk documentation:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/PanelreferenceforSimplifiedXML#condition_.28form_input.29"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/PanelreferenceforSimplifiedXML#condition_.28form_input.29&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2019 15:11:57 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-04-09T15:11:57Z</dc:date>
    <item>
      <title>How to modify a part of a search based on two inputs selection?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-a-part-of-a-search-based-on-two-inputs-selection/m-p/394018#M171947</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have a dashboard with 2 inputs:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;A radio input with two buttons, &lt;CODE&gt;index&lt;/CODE&gt; and &lt;CODE&gt;role&lt;/CODE&gt;, with the token &lt;CODE&gt;view&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Text input with the token &lt;CODE&gt;filter&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;And a table with the result of a search.&lt;/P&gt;

&lt;P&gt;I want to set the end off my search depending the values of &lt;CODE&gt;$view$&lt;/CODE&gt; and &lt;CODE&gt;$filter$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I should have " &lt;CODE&gt;| search index_name=*$filter$* | stats values(Role) by index_name&lt;/CODE&gt; " if &lt;CODE&gt;$view$&lt;/CODE&gt; is &lt;CODE&gt;index&lt;/CODE&gt;&lt;BR /&gt;
or " &lt;CODE&gt;| search Role=*$filter$* | stats values(index_name) by Role&lt;/CODE&gt; " if &lt;CODE&gt;$view$&lt;/CODE&gt; is &lt;CODE&gt;role&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Any idee how to do this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 15:05:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-a-part-of-a-search-based-on-two-inputs-selection/m-p/394018#M171947</guid>
      <dc:creator>ktn01</dc:creator>
      <dc:date>2019-04-09T15:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify a part of a search based on two inputs selection?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-a-part-of-a-search-based-on-two-inputs-selection/m-p/394019#M171948</link>
      <description>&lt;P&gt;You can set new tokens( which will be used in search) based on the value selected in the radio button. See the example in following Splunk documentation:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/PanelreferenceforSimplifiedXML#condition_.28form_input.29"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/PanelreferenceforSimplifiedXML#condition_.28form_input.29&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 15:11:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-a-part-of-a-search-based-on-two-inputs-selection/m-p/394019#M171948</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-09T15:11:57Z</dc:date>
    </item>
  </channel>
</rss>

