<?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 export a dashboard as PDF on demand from Splunk REST API / Java SDK ? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216190#M13492</link>
    <description>&lt;P&gt;This command works for dashboards that dont require any user input.&lt;/P&gt;

&lt;P&gt;How can we use the above to command to export a dashboard that requires user inputs ?&lt;/P&gt;

&lt;P&gt;I tried the curl command to export the Splunk for PaloAlto Networks app's main dashboard and it worked. However, when I tried the same command with additional parameters for Cisco app's dashboard, it just generated an unreadable1kb pdf file.&lt;/P&gt;

&lt;P&gt;Example below,&lt;BR /&gt;
curl -u admin:{password} -k "&lt;A href="https://localhost:8089/services/pdfgen/render?input-dashboard=CiscoNetworksOverview&amp;amp;namespace=cisco_ios&amp;amp;paper-size=a4-landscape&amp;amp;earliest=-24h%40h%E2%AA%ADst=now&amp;amp;form.product_selection=WLC"&gt;https://localhost:8089/services/pdfgen/render?input-dashboard=CiscoNetworksOverview&amp;amp;namespace=cisco_ios&amp;amp;paper-size=a4-landscape&amp;amp;earliest=-24h%40h⪭st=now&amp;amp;form.product_selection=WLC&lt;/A&gt;" &amp;gt;&amp;gt; C:\Users\admin\Downloads\test.pdf&lt;/P&gt;

&lt;P&gt;Any workaround for this please?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2017 04:02:28 GMT</pubDate>
    <dc:creator>damode</dc:creator>
    <dc:date>2017-10-24T04:02:28Z</dc:date>
    <item>
      <title>How to export a dashboard as PDF on demand from Splunk REST API / Java SDK ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216187#M13489</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am new to splunk and I am trying to work with the SDK. Is there  a way to export your dashboard as a PDF on demand using either Java SDK/Rest API?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 14:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216187#M13489</guid>
      <dc:creator>kayzid</dc:creator>
      <dc:date>2015-09-08T14:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a dashboard as PDF on demand from Splunk REST API / Java SDK ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216188#M13490</link>
      <description>&lt;P&gt;Wow, this is old. Just for grins, i think this answers the question:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -sku admin 'https://localhost/services/pdfgen/render?input-dashboard=your_view&amp;amp;namespace=your_app&amp;amp;paper-size=a4-landscape' &amp;gt; your_report.pdf
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Oct 2016 02:15:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216188#M13490</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-10-27T02:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a dashboard as PDF on demand from Splunk REST API / Java SDK ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216189#M13491</link>
      <description>&lt;P&gt;Maybe it's time to draft some doc on this feature, when I tried to use the pdfgen/render service, I got the following error message:&lt;/P&gt;

&lt;P&gt;404 Not Found&lt;/P&gt;

&lt;P&gt;Return to Splunk home page&lt;BR /&gt;
Page not found!&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 17:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216189#M13491</guid>
      <dc:creator>newsureman</dc:creator>
      <dc:date>2017-06-19T17:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a dashboard as PDF on demand from Splunk REST API / Java SDK ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216190#M13492</link>
      <description>&lt;P&gt;This command works for dashboards that dont require any user input.&lt;/P&gt;

&lt;P&gt;How can we use the above to command to export a dashboard that requires user inputs ?&lt;/P&gt;

&lt;P&gt;I tried the curl command to export the Splunk for PaloAlto Networks app's main dashboard and it worked. However, when I tried the same command with additional parameters for Cisco app's dashboard, it just generated an unreadable1kb pdf file.&lt;/P&gt;

&lt;P&gt;Example below,&lt;BR /&gt;
curl -u admin:{password} -k "&lt;A href="https://localhost:8089/services/pdfgen/render?input-dashboard=CiscoNetworksOverview&amp;amp;namespace=cisco_ios&amp;amp;paper-size=a4-landscape&amp;amp;earliest=-24h%40h%E2%AA%ADst=now&amp;amp;form.product_selection=WLC"&gt;https://localhost:8089/services/pdfgen/render?input-dashboard=CiscoNetworksOverview&amp;amp;namespace=cisco_ios&amp;amp;paper-size=a4-landscape&amp;amp;earliest=-24h%40h⪭st=now&amp;amp;form.product_selection=WLC&lt;/A&gt;" &amp;gt;&amp;gt; C:\Users\admin\Downloads\test.pdf&lt;/P&gt;

&lt;P&gt;Any workaround for this please?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 04:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216190#M13492</guid>
      <dc:creator>damode</dc:creator>
      <dc:date>2017-10-24T04:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a dashboard as PDF on demand from Splunk REST API / Java SDK ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216191#M13493</link>
      <description>&lt;P&gt;You can write a python script to achieve your requirement.  I was successful in doing so.  Please check the following link.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/366832/generate-pdf-from-view-in-rest-api.html"&gt;https://answers.splunk.com/answers/366832/generate-pdf-from-view-in-rest-api.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 17:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216191#M13493</guid>
      <dc:creator>anwarmian</dc:creator>
      <dc:date>2017-10-30T17:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a dashboard as PDF on demand from Splunk REST API / Java SDK ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216192#M13494</link>
      <description>&lt;P&gt;Hi , I got the same error too. How do u resolve this ? &lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 02:56:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-export-a-dashboard-as-PDF-on-demand-from-Splunk-REST-API/m-p/216192#M13494</guid>
      <dc:creator>Iriseng94</dc:creator>
      <dc:date>2019-05-17T02:56:58Z</dc:date>
    </item>
  </channel>
</rss>

