<?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 specify a literal asterisk as a conditional value in dashboard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-literal-asterisk-as-a-conditional-value-in/m-p/336717#M162482</link>
    <description>&lt;P&gt;I'm trying to create a dashboard that displays one dash panel if the user enters "*" into a text input, and display another dash panel if the user enters anything other than an asterisk. Is this possible?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 09 Mar 2018 06:11:50 GMT</pubDate>
    <dc:creator>ehowardl3</dc:creator>
    <dc:date>2018-03-09T06:11:50Z</dc:date>
    <item>
      <title>How to specify a literal asterisk as a conditional value in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-literal-asterisk-as-a-conditional-value-in/m-p/336717#M162482</link>
      <description>&lt;P&gt;I'm trying to create a dashboard that displays one dash panel if the user enters "*" into a text input, and display another dash panel if the user enters anything other than an asterisk. Is this possible?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 06:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-literal-asterisk-as-a-conditional-value-in/m-p/336717#M162482</guid>
      <dc:creator>ehowardl3</dc:creator>
      <dc:date>2018-03-09T06:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a literal asterisk as a conditional value in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-literal-asterisk-as-a-conditional-value-in/m-p/336718#M162483</link>
      <description>&lt;P&gt;certainly possible - refer here for setting and unsetting tokens in dashboard&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Viz/tokens"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Viz/tokens&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 15:57:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-literal-asterisk-as-a-conditional-value-in/m-p/336718#M162483</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2018-03-10T15:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a literal asterisk as a conditional value in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-literal-asterisk-as-a-conditional-value-in/m-p/336719#M162484</link>
      <description>&lt;P&gt;Thanks, the issue is specifying a literal asterisk as a conditional value, there doesn't seem to be a way to "escape" the wildcard.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 18:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-literal-asterisk-as-a-conditional-value-in/m-p/336719#M162484</guid>
      <dc:creator>ehowardl3</dc:creator>
      <dc:date>2018-03-10T18:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a literal asterisk as a conditional value in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-literal-asterisk-as-a-conditional-value-in/m-p/336720#M162485</link>
      <description>&lt;P&gt;@ehowardl3, try the following run anywhere dashboard which displays first panel when Text Box value is asterisk i.e. &lt;CODE&gt;(*)&lt;/CODE&gt; and second panel otherwise using &lt;CODE&gt;depends&lt;/CODE&gt; and &lt;CODE&gt;rejects&lt;/CODE&gt; attributes respectively.&lt;BR /&gt;
While these two attributes show or hide a dashboard element like input, row, panel, visualization etc, underlying search for both panels will still run based on change in dropdown value. &lt;/P&gt;

&lt;P&gt;If you need to run only one query at a time you would need to have two depends tokens set (one for each text box selection condition). Then use the token in Splunk search for specific panel so that the search does not run when the token is not set. You would need to provide your current search for both panels in case you want me to assist in this situation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Show Hide Panel based on Text Input&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="text" token="tokText" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="value=&amp;amp;quot;*&amp;amp;quot;"&amp;gt;
          &amp;lt;set token="showPanel1"&amp;gt;true&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;unset token="showPanel1"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$showPanel1$"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Panel 1&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
          | fields - _time
          | eval SelectedValue="$tokText$"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel rejects="$showPanel1$"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Panel 2&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
          | fields - _time
          | eval SelectedValue="$tokText$"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 18:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-literal-asterisk-as-a-conditional-value-in/m-p/336720#M162485</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-10T18:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a literal asterisk as a conditional value in dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-literal-asterisk-as-a-conditional-value-in/m-p/336721#M162486</link>
      <description>&lt;P&gt;Thanks! The line I was looking for was:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;condition match="value=&amp;amp;quot;*&amp;amp;quot;"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This allows me to match on a literal asterisk. &lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 14:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-literal-asterisk-as-a-conditional-value-in/m-p/336721#M162486</guid>
      <dc:creator>ehowardl3</dc:creator>
      <dc:date>2018-04-04T14:03:50Z</dc:date>
    </item>
  </channel>
</rss>

