<?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: Unable to render Dashboard to PDF with REST API in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-render-Dashboard-to-PDF-with-REST-API/m-p/695625#M57004</link>
    <description>&lt;P&gt;I can't answer your specific question other than to ask if you have inputs or tokens, which are discussed from other users who have similar questions.&lt;/P&gt;&lt;P&gt;However, there is a relatively new app&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/7171" target="_blank"&gt;https://splunkbase.splunk.com/app/7171&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which may be of interest, as it will give you more control over the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 22:39:58 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2024-08-07T22:39:58Z</dc:date>
    <item>
      <title>Unable to render Dashboard to PDF with REST API</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-render-Dashboard-to-PDF-with-REST-API/m-p/695578#M56998</link>
      <description>&lt;P&gt;Hello everyone, and thanks in advance for your help. I'm very new to this subject so if anything is unclear, i'll try to explain my problem more in details.&lt;/P&gt;&lt;P&gt;I'm using spunk 9.2.1, and i'm trying to generate a PDF from one of my dashboard, using a splunk API call. From what i saw online, i should use :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;GET /services/pdfgen/render?input-dashboard=&amp;lt;DashboardName&amp;gt;&amp;amp;namespace=&amp;lt;AppName&amp;gt;&amp;amp;paper-size=a4-landscape&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;user = MyUser; app = MyApp; dashboard = Security_events_dashboard&lt;/P&gt;&lt;P&gt;(i'm using a module that calls the API for me, all i do is precise the endpoint and the parameters and it gives me the response as a string)&lt;/P&gt;&lt;P&gt;The problem is that i get this error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Unable to render PDF.&amp;lt;br/&amp;gt;&amp;lt;ul&amp;gt;&amp;lt;il&amp;gt;Bailing out of Integrated PDF Generation. Exception raised while preparing to render "Untitled" to PDF. [HTTP 404] https://localhost:8089/servicesNS/MyUser/MyApp/data/ui/views/Security_events_dashboard; [{'type': 'ERROR', 'code': None, 'text': 'Could not find object id=Security_events_dashboard'}]&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On th GUI, signed as MyUser, i can see the dashboard under MyApp, and the permission is set to read for MyUser, Owner = nobody, Sharing = App. To confirm this, on my Search-Head VM i can see the dashboard under $SPLUNK_HOME/etc/apps/MyApp/default/data/ui/views/security_events_dashboard.xml. Plus in&amp;nbsp;$SPLUNK_HOME/etc/apps/MyApp/metadata/default.meta :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[views/security_events_dashboard.xml]
access = read : [MyUser], write : [admin]
owner = nobody
version = 9.1.0.1
export = system&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried using the dashboard name as security_events_dashboard (instead of Security_events_dashboard) but i get the same error.&lt;/P&gt;&lt;P&gt;I don't see what i'm missing here, si if anyone could give me hint or two please,&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 15:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-render-Dashboard-to-PDF-with-REST-API/m-p/695578#M56998</guid>
      <dc:creator>Ethil</dc:creator>
      <dc:date>2024-08-07T15:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to render Dashboard to PDF with REST API</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-render-Dashboard-to-PDF-with-REST-API/m-p/695625#M57004</link>
      <description>&lt;P&gt;I can't answer your specific question other than to ask if you have inputs or tokens, which are discussed from other users who have similar questions.&lt;/P&gt;&lt;P&gt;However, there is a relatively new app&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/7171" target="_blank"&gt;https://splunkbase.splunk.com/app/7171&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which may be of interest, as it will give you more control over the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 22:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-render-Dashboard-to-PDF-with-REST-API/m-p/695625#M57004</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-08-07T22:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to render Dashboard to PDF with REST API</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-render-Dashboard-to-PDF-with-REST-API/m-p/702138#M57584</link>
      <description>&lt;P&gt;Yeah i know the problem was quite specific, sorry for the late answer and thanks for your help. I was able to determine what failed, the GET was actually supposed to be a POST request. I don't really know why but one splunk error message said that the GET is outdated for pdfgen. Anyway thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 07:32:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-render-Dashboard-to-PDF-with-REST-API/m-p/702138#M57584</guid>
      <dc:creator>Ethil</dc:creator>
      <dc:date>2024-10-17T07:32:12Z</dc:date>
    </item>
  </channel>
</rss>

