<?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: Checkbox usage in splunk dashboard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Checkbox-usage-in-splunk-dashboard/m-p/367072#M108276</link>
    <description>&lt;P&gt;So how will be the token $chkA$ &amp;amp; $chkB$ will take affect to my queries??&lt;/P&gt;</description>
    <pubDate>Thu, 28 Dec 2017 13:27:15 GMT</pubDate>
    <dc:creator>bharathkumarnec</dc:creator>
    <dc:date>2017-12-28T13:27:15Z</dc:date>
    <item>
      <title>Checkbox usage in splunk dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Checkbox-usage-in-splunk-dashboard/m-p/367069#M108273</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am using 5 checkboxes and when i select any of the checkbox then only corresponding chart will be visible, challenge here is even though i select the checkbox or not, query for all the 5 checkboxes are running backend.&lt;/P&gt;

&lt;P&gt;So checkbox is only giving me the option of hide &amp;amp; visibility.&lt;/P&gt;

&lt;P&gt;Kindly help me out if this is the purpose of the checkbox and also is there anyway that only when selected a chart query has to run.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
BK &lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 17:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Checkbox-usage-in-splunk-dashboard/m-p/367069#M108273</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2017-12-27T17:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox usage in splunk dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Checkbox-usage-in-splunk-dashboard/m-p/367070#M108274</link>
      <description>&lt;P&gt;You can use some trickery to accomplish what you're looking for.&lt;/P&gt;

&lt;P&gt;Try having your checkbox set a value that is essentially a "no-op" in your search.  For example, if your panel runs a typical indexed search like &lt;CODE&gt;index=main sourcetype=firewall src=$src$ dest=$dest$&lt;/CODE&gt;, you could have your checkbox set its value to the implied &lt;CODE&gt;search&lt;/CODE&gt; command.  The search would then look like this: &lt;CODE&gt;$checkbox$ index=main sourcetype=firewall src=$src$ dest=$dest$&lt;/CODE&gt;.  When your checkbox is selected the &lt;CODE&gt;$checkbox$&lt;/CODE&gt; token will get replaced with the &lt;CODE&gt;search&lt;/CODE&gt; command and the search will kick off.&lt;/P&gt;

&lt;P&gt;The key to having the search not running in the background is to make sure that the query contains a token that isn't defined until your checkbox is selected.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 17:54:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Checkbox-usage-in-splunk-dashboard/m-p/367070#M108274</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-12-27T17:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox usage in splunk dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Checkbox-usage-in-splunk-dashboard/m-p/367071#M108275</link>
      <description>&lt;P&gt;Hi @bharathkumarnec,&lt;/P&gt;

&lt;P&gt;Can you please try this dashboard XML?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Search on click of Check Box &amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="checkbox" token="tkn_chk1"&amp;gt;
      &amp;lt;label&amp;gt;Check box 1&amp;lt;/label&amp;gt;
      &amp;lt;choice value="true"&amp;gt;Chk1&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="true"&amp;gt;
          &amp;lt;set token="chkA"&amp;gt;&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="*"&amp;gt;
          &amp;lt;unset token="chkA"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="checkbox" token="tkn_chk2"&amp;gt;
      &amp;lt;label&amp;gt;Check box 2&amp;lt;/label&amp;gt;
      &amp;lt;choice value="true"&amp;gt;Chk2&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="true"&amp;gt;
          &amp;lt;set token="chkB"&amp;gt;&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="*"&amp;gt;
          &amp;lt;unset token="chkB"&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="$chkA$"&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;index=_internal  $chkA$ | stats count by sourcetype&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&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 depends="$chkB$"&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;index=_internal  $chkB$ | stats count by source&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&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;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 18:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Checkbox-usage-in-splunk-dashboard/m-p/367071#M108275</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-12-27T18:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox usage in splunk dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Checkbox-usage-in-splunk-dashboard/m-p/367072#M108276</link>
      <description>&lt;P&gt;So how will be the token $chkA$ &amp;amp; $chkB$ will take affect to my queries??&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 13:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Checkbox-usage-in-splunk-dashboard/m-p/367072#M108276</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2017-12-28T13:27:15Z</dc:date>
    </item>
  </channel>
</rss>

