<?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 add download button while hiding the result s of the panel in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685393#M2997</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;++++ Any suggestions pls?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2024 07:06:51 GMT</pubDate>
    <dc:creator>Splunkerninja</dc:creator>
    <dc:date>2024-04-25T07:06:51Z</dc:date>
    <item>
      <title>How to add download button while hiding the result s of the panel</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685126#M2984</link>
      <description>&lt;P&gt;I want to add a download/export button which I am able to do so but the issue is the result of the csv is also visible in the panel like below. I want to show only the download button while hiding the results panel which I am not able to do.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunkerninja_0-1713875140159.png" style="width: 1891px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30531i54B6FF92A4CB2BED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Splunkerninja_0-1713875140159.png" alt="Splunkerninja_0-1713875140159.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;row&amp;gt;
&amp;lt;panel&amp;gt;
&amp;lt;table&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;done&amp;gt;
&amp;lt;eval token="date"&amp;gt;strftime(now(), "%d-%m-%Y")&amp;lt;/eval&amp;gt;

&amp;lt;set token="sid"&amp;gt;$job.sid$&amp;lt;/set&amp;gt;
&amp;lt;/done&amp;gt;
&amp;lt;query&amp;gt;index=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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;option name="count"&amp;gt;20&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="refresh.display"&amp;gt;progressbar&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;html&amp;gt;

&amp;lt;a href="/api/search/jobs/$sid$/results?isDownload=true&amp;amp;amp;timeFormat=%25FT%25T.%25Q%25%3Az&amp;amp;amp;maxLines=0&amp;amp;amp;count=0&amp;amp;amp;filename=test_$date$.csv&amp;amp;amp;outputMode=csv" class="button js-button"&amp;gt;Download&amp;lt;/a&amp;gt;
&amp;lt;style&amp;gt;
.button {
background-color: steelblue;
border-radius: 5px;
color: white;
padding: .5em;
text-decoration: none;
}

.button:focus,
.button:hover {
background-color: #2A4E6C;
color: White;
}
&amp;lt;/style&amp;gt;
&amp;lt;/html&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Apr 2024 14:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685126#M2984</guid>
      <dc:creator>Splunkerninja</dc:creator>
      <dc:date>2024-04-23T14:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add download button while hiding the result s of the panel</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685143#M2986</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262258"&gt;@Splunkerninja&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can we add another row only for the html panel and hide the result row/panel with a "depends" token?&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;row&amp;gt;
&amp;lt;panel depends="$hide_this_always$"&amp;gt;
&amp;lt;table&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;done&amp;gt;
&amp;lt;eval token="date"&amp;gt;strftime(now(), "%d-%m-%Y")&amp;lt;/eval&amp;gt;

&amp;lt;set token="sid"&amp;gt;$job.sid$&amp;lt;/set&amp;gt;
&amp;lt;/done&amp;gt;
&amp;lt;query&amp;gt;index=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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;option name="count"&amp;gt;20&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="refresh.display"&amp;gt;progressbar&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;html&amp;gt;

&amp;lt;a href="/api/search/jobs/$sid$/results?isDownload=true&amp;amp;amp;timeFormat=%25FT%25T.%25Q%25%3Az&amp;amp;amp;maxLines=0&amp;amp;amp;count=0&amp;amp;amp;filename=test_$date$.csv&amp;amp;amp;outputMode=csv" class="button js-button"&amp;gt;Download&amp;lt;/a&amp;gt;
&amp;lt;style&amp;gt;
.button {
background-color: steelblue;
border-radius: 5px;
color: white;
padding: .5em;
text-decoration: none;
}

.button:focus,
.button:hover {
background-color: #2A4E6C;
color: White;
}
&amp;lt;/style&amp;gt;
&amp;lt;/html&amp;gt;

&amp;lt;/row&amp;gt;  &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Apr 2024 13:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685143#M2986</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2024-04-23T13:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to add download button while hiding the result s of the panel</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685250#M2993</link>
      <description>&lt;P&gt;I get this error if i add in different row as you mentioned above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunkerninja_0-1713940268236.png" style="width: 862px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30541iFDEAEA6461B4785C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Splunkerninja_0-1713940268236.png" alt="Splunkerninja_0-1713940268236.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Any suggestions pls?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 08:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685250#M2993</guid>
      <dc:creator>Splunkerninja</dc:creator>
      <dc:date>2024-04-24T08:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to add download button while hiding the result s of the panel</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685393#M2997</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;++++ Any suggestions pls?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 07:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685393#M2997</guid>
      <dc:creator>Splunkerninja</dc:creator>
      <dc:date>2024-04-25T07:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add download button while hiding the result s of the panel</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685400#M2998</link>
      <description>&lt;P&gt;Rest assured, if I had any suggestions, I would have given them by now.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 07:27:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685400#M2998</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-25T07:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add download button while hiding the result s of the panel</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685434#M2999</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262258"&gt;@Splunkerninja&lt;/a&gt;, this is clearly not due to the row separation but the formation of the URL for getting the search results.&lt;/P&gt;&lt;P&gt;So if the current dashboard is working for you with the search result URL, just make the first change by closing the &amp;lt;/row&amp;gt; after the table panel and open another &amp;lt;row&amp;gt; element before the html element. This will ensure that the existing dashboard is working as expected.&lt;/P&gt;&lt;P&gt;As a second step, change the visibility of the row where table is listed and set a "depends" clause with non existing token.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 09:42:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685434#M2999</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2024-04-25T09:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add download button while hiding the result s of the panel</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685471#M3001</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136781"&gt;@renjith_nair&lt;/a&gt;&amp;nbsp;Thank You for the response. I keep getting check "network internet connection" when I click on download button and it is failing to download. I was able to download the report once but later I keep getting this error? I know for a fact it is not internet issue because I able to download the other panels data directly when i click the default export button which is there in Splunk. Is it something related to my code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;row depends="$hide_this_always$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;eval token="date"&amp;gt;strftime(now(), "%d-%m-%Y")&amp;lt;/eval&amp;gt;
            &amp;lt;set token="sid"&amp;gt;$job.sid$&amp;lt;/set&amp;gt;
          &amp;lt;/done&amp;gt;
          &amp;lt;query&amp;gt;index=_internal&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;20&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="refresh.display"&amp;gt;progressbar&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&amp;gt;
      &amp;lt;html&amp;gt;

&amp;lt;a href="/api/search/jobs/$sid$/results?isDownload=true&amp;amp;amp;maxLines=0&amp;amp;amp;count=0&amp;amp;amp;filename=Vulnerability_$date$.csv&amp;amp;amp;outputMode=csv" class="button js-button"&amp;gt;Download&amp;lt;/a&amp;gt;
&amp;lt;style&amp;gt;
.button {
background-color: steelblue;
border-radius: 5px;
color: white;
padding: .5em;
text-decoration: none;
}

.button:focus,
.button:hover {
background-color: #2A4E6C;
color: White;
}
&amp;lt;/style&amp;gt;
&amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunkerninja_0-1714050719400.png" style="width: 344px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30564i648AA26BDEF55256/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Splunkerninja_0-1714050719400.png" alt="Splunkerninja_0-1714050719400.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunkerninja_1-1714050747617.png" style="width: 684px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30565iF8E66DC4D6F9385C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Splunkerninja_1-1714050747617.png" alt="Splunkerninja_1-1714050747617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 13:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685471#M3001</guid>
      <dc:creator>Splunkerninja</dc:creator>
      <dc:date>2024-04-25T13:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add download button while hiding the result s of the panel</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685477#M3002</link>
      <description>&lt;P&gt;Ok, lets check if the results are available by just removing below from the dashboard&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;depends="$hide_this_always$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;We need to confirm the sid is available since its part of the download path.&amp;nbsp; So either in the title of the panel or somewhere just display the token.&lt;/P&gt;&lt;P&gt;If the result is available and sid is present, try using the URL directly in the browser to make sure that the result is fetched.&lt;/P&gt;&lt;P&gt;Here is a sample dashboard created using the same logic and it works&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard version="1.1" theme="light"&amp;gt;
  &amp;lt;label&amp;gt;Download&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;!-- Below is the table with the results. We are setting the panel depends to a non existing token so that it always false the panel is not visible.--&amp;gt;
    &amp;lt;panel depends="$hide_always$"&amp;gt;
      &amp;lt;title&amp;gt;$sid$&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_*|stats count by sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;eval token="date"&amp;gt;strftime(now(), "%d-%m-%Y %H:%M:%S")&amp;lt;/eval&amp;gt;
            &amp;lt;set token="sid"&amp;gt;$job.sid$&amp;lt;/set&amp;gt;
          &amp;lt;/done&amp;gt;          
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&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&amp;gt;
      &amp;lt;!-- Setting the title for testing purpose and making sure that the SID is available in the token --&amp;gt;
      &amp;lt;title&amp;gt;Job Id is : $sid$, Time is : $date$&amp;lt;/title&amp;gt;
      &amp;lt;html&amp;gt;

&amp;lt;a href="/api/search/jobs/$sid$/results?isDownload=true&amp;amp;amp;timeFormat=%25FT%25T.%25Q%25%3Az&amp;amp;amp;maxLines=0&amp;amp;amp;count=0&amp;amp;amp;filename=test_$date$.csv&amp;amp;amp;outputMode=csv" class="button js-button"&amp;gt;Download&amp;lt;/a&amp;gt;
&amp;lt;style&amp;gt;
.button {
background-color: steelblue;
border-radius: 5px;
color: white;
padding: .5em;
text-decoration: none;
}

.button:focus,
.button:hover {
background-color: #2A4E6C;
color: White;
}
&amp;lt;/style&amp;gt;
&amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Apr 2024 13:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-add-download-button-while-hiding-the-result-s-of-the/m-p/685477#M3002</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2024-04-25T13:30:39Z</dc:date>
    </item>
  </channel>
</rss>

