<?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: Can I Export PDF Via Rest? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193794#M38612</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 above 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&amp;amp;latest=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&amp;amp;latest=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 03:39:24 GMT</pubDate>
    <dc:creator>damode</dc:creator>
    <dc:date>2017-10-24T03:39:24Z</dc:date>
    <item>
      <title>Can I Export PDF Via Rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193791#M38609</link>
      <description>&lt;P&gt;Is it  possible  to download the report in PDF format  via REST?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:47:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193791#M38609</guid>
      <dc:creator>mzorzi</dc:creator>
      <dc:date>2015-03-24T13:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Export PDF Via Rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193792#M38610</link>
      <description>&lt;P&gt;Try this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -u admin:{{password}} -k 'https://localhost:8089/services/pdfgen/render?input-dashboard={{your_dashboard}}&amp;amp;namespace={{your_namespace}}&amp;amp;paper-size=a4-landscape' &amp;gt;&amp;gt; test.pdf
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:49:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193792#M38610</guid>
      <dc:creator>mzorzi</dc:creator>
      <dc:date>2015-03-24T13:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Export PDF Via Rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193793#M38611</link>
      <description>&lt;P&gt;One thing I noted is that the line endings were causing an issue for Adobe to read the PDF. If anyone is having that issue, replacing any new line characters ("\n") with carriage returns ("\r") should fix the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 15:13:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193793#M38611</guid>
      <dc:creator>bruceclarke</dc:creator>
      <dc:date>2016-02-23T15:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Export PDF Via Rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193794#M38612</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 above 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&amp;amp;latest=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&amp;amp;latest=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 03:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193794#M38612</guid>
      <dc:creator>damode</dc:creator>
      <dc:date>2017-10-24T03:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Export PDF Via Rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193795#M38613</link>
      <description>&lt;P&gt;You can write a python script to input data to a generic dashboard and create a pdf.  Please see 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;

&lt;P&gt;It worked for me.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 16:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193795#M38613</guid>
      <dc:creator>anwarmian</dc:creator>
      <dc:date>2017-10-30T16:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Export PDF Via Rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193796#M38614</link>
      <description>&lt;P&gt;When I try using this method, a .pdf file gets pulled back but isn't readable and won't open. Have you guys encountered this issue?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2019 20:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193796#M38614</guid>
      <dc:creator>migquinn</dc:creator>
      <dc:date>2019-06-08T20:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Export PDF Via Rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193797#M38615</link>
      <description>&lt;P&gt;sometimes not able to open the pdf report, it's corrupted and it is from cluster environment. Any views on it? &lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 09:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-Export-PDF-Via-Rest/m-p/193797#M38615</guid>
      <dc:creator>Chinna_nara</dc:creator>
      <dc:date>2019-12-09T09:16:24Z</dc:date>
    </item>
  </channel>
</rss>

