<?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 can I make use of a search string and token to display text in panels? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-use-of-a-search-string-and-token-to-display-text/m-p/252771#M75631</link>
    <description>&lt;P&gt;You can use the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Viz/PanelreferenceforSimplifiedXML#html"&gt;HTML&lt;/A&gt; panel for your title and use &lt;CODE&gt;rejects&lt;/CODE&gt; on the panel that should be displayed &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Viz/PanelreferenceforSimplifiedXML#panel"&gt;conditionally&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2016 12:15:24 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-05-19T12:15:24Z</dc:date>
    <item>
      <title>How can I make use of a search string and token to display text in panels?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-use-of-a-search-string-and-token-to-display-text/m-p/252768#M75628</link>
      <description>&lt;P&gt;I am developing a dashboard to analyze users logs from an email application. The dashboard has a Time (Time Picker) and Email (Drop-down List) as inputs. Users are able to select time range and a email in interest to drill down the different panels in the dashboard.&lt;/P&gt;

&lt;P&gt;The email drop-down list consists of All (*), email1, email2, ..., etc). The token for this drop-down list is &lt;CODE&gt;$email$&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1366iEAAFEAE9EBDD9463/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;When the user selects All, I would like some panels to show a message like "Further drilldown required". The reason is some panels are irrelevant when all emails are selected.&lt;/P&gt;

&lt;P&gt;I know that I have to edit the various panels' search string use eval if(x,y,z) and the token &lt;CODE&gt;$email$&lt;/CODE&gt;. However, I have no clue on how to start. One problem is, I am unable to use eval function at the start of a search string.&lt;/P&gt;

&lt;P&gt;I appreciate help from you guys. Thank you in advance. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Cheers!&lt;BR /&gt;
- Nick&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 01:40:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-use-of-a-search-string-and-token-to-display-text/m-p/252768#M75628</guid>
      <dc:creator>niftynicholas</dc:creator>
      <dc:date>2016-05-18T01:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make use of a search string and token to display text in panels?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-use-of-a-search-string-and-token-to-display-text/m-p/252769#M75629</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Filters&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="tok_email" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Email&amp;lt;/label&amp;gt;
      &amp;lt;change&amp;gt;
      &amp;lt;condition value="All"&amp;gt;
        &amp;lt;set token="tok_errMsg"&amp;gt;Further drill-down required&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;condition value="*"&amp;gt;
        &amp;lt;set token="tok_errMsg"&amp;gt; &amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
      &amp;lt;choice value="One"&amp;gt;One&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Two"&amp;gt;Two&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Three"&amp;gt;Three&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="All"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;All&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;$tok_errMsg$&amp;lt;/title&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 May 2016 05:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-use-of-a-search-string-and-token-to-display-text/m-p/252769#M75629</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-18T05:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make use of a search string and token to display text in panels?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-use-of-a-search-string-and-token-to-display-text/m-p/252770#M75630</link>
      <description>&lt;P&gt;Hi sundareshr,&lt;/P&gt;

&lt;P&gt;Thank you for your answer! You saved my day! It works good enough for me to present to my team.&lt;/P&gt;

&lt;P&gt;Currently, "Further drill-down is required" is only reflected in the panel title. However, it would be better if the panels do no show any information but a line of text in order to prevent confusion.&lt;/P&gt;

&lt;P&gt;Do you have a workaround? I'm really grateful for your help.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Nick&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 08:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-use-of-a-search-string-and-token-to-display-text/m-p/252770#M75630</guid>
      <dc:creator>niftynicholas</dc:creator>
      <dc:date>2016-05-18T08:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make use of a search string and token to display text in panels?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-use-of-a-search-string-and-token-to-display-text/m-p/252771#M75631</link>
      <description>&lt;P&gt;You can use the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Viz/PanelreferenceforSimplifiedXML#html"&gt;HTML&lt;/A&gt; panel for your title and use &lt;CODE&gt;rejects&lt;/CODE&gt; on the panel that should be displayed &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Viz/PanelreferenceforSimplifiedXML#panel"&gt;conditionally&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 12:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-use-of-a-search-string-and-token-to-display-text/m-p/252771#M75631</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-19T12:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make use of a search string and token to display text in panels?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-use-of-a-search-string-and-token-to-display-text/m-p/252772#M75632</link>
      <description>&lt;P&gt;You can also have a separate token that gets set when value=*, like so:&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
   true&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
 and unset when value=All:&lt;BR /&gt;
`&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 13:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-use-of-a-search-string-and-token-to-display-text/m-p/252772#M75632</guid>
      <dc:creator>randau9</dc:creator>
      <dc:date>2016-08-04T13:22:51Z</dc:date>
    </item>
  </channel>
</rss>

