<?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: Set token in XML dashboard based on result count in scheduled report in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-token-in-XML-dashboard-based-on-result-count-in-scheduled/m-p/503356#M32990</link>
    <description>&lt;P&gt;@sssignals &lt;/P&gt;

&lt;P&gt;Here, I suggest you store count in any lookup and use in your dashbaord to set token.&lt;/P&gt;

&lt;P&gt;Like.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | stats count | oputputlookup my_lookup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Access lookup data using &lt;CODE&gt;| inputlookup my_lookup | table count&lt;/CODE&gt; and set token in the dashboard.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2019 07:04:27 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2019-10-23T07:04:27Z</dc:date>
    <item>
      <title>Set token in XML dashboard based on result count in scheduled report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-token-in-XML-dashboard-based-on-result-count-in-scheduled/m-p/503355#M32989</link>
      <description>&lt;P&gt;Hi Splunk community&lt;/P&gt;

&lt;P&gt;I have a scheduled report running every 5 mins that ends with "... | stats count". Is there a way based on result count &amp;gt; 0, set token to true in XML dashboard in order to show the panel that depends on the token.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 06:46:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Set-token-in-XML-dashboard-based-on-result-count-in-scheduled/m-p/503355#M32989</guid>
      <dc:creator>sssignals</dc:creator>
      <dc:date>2019-10-23T06:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set token in XML dashboard based on result count in scheduled report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-token-in-XML-dashboard-based-on-result-count-in-scheduled/m-p/503356#M32990</link>
      <description>&lt;P&gt;@sssignals &lt;/P&gt;

&lt;P&gt;Here, I suggest you store count in any lookup and use in your dashbaord to set token.&lt;/P&gt;

&lt;P&gt;Like.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | stats count | oputputlookup my_lookup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Access lookup data using &lt;CODE&gt;| inputlookup my_lookup | table count&lt;/CODE&gt; and set token in the dashboard.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 07:04:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Set-token-in-XML-dashboard-based-on-result-count-in-scheduled/m-p/503356#M32990</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-10-23T07:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set token in XML dashboard based on result count in scheduled report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-token-in-XML-dashboard-based-on-result-count-in-scheduled/m-p/503357#M32991</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You can add a hidden panel with saved search and use the result count in other search,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row depends="$hidden$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Report Name&amp;lt;/title&amp;gt;
        &amp;lt;search ref="Saved Search or Alert Name"&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;set token="test"&amp;gt;$job.resultCount$&amp;lt;/set&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval test=$test$&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;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Accept &amp;amp; up-vote the answer if it helps.&lt;/P&gt;

&lt;P&gt;happy splunking.....!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 14:57:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Set-token-in-XML-dashboard-based-on-result-count-in-scheduled/m-p/503357#M32991</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2019-10-24T14:57:44Z</dc:date>
    </item>
  </channel>
</rss>

