Dashboards & Visualizations

REST API > Export Dashboard as PDF

neptoon
Engager

Is there a REST API method to export an existing dashboard as PDF (like I would do in the web interface)? The documentation does not really provide any hints or I am not seeing them.

Tags (2)
1 Solution

muebel
SplunkTrust
SplunkTrust

Hi neptoon, It doesn't seem that there is an endpoint available in the REST interface, but you should be able to use the URL described here : https://answers.splunk.com/answers/223655/can-i-export-pdf-via-rest.html

curl -u admin:{{password}} -k 'https://localhost:8089/services/pdfgen/render?input-dashboard={{your_dashboard}}&namespace={{your_namespace}}&paper-size=a4-landscape' >> test.pdf

Please let me know if this answers your question!

View solution in original post

muebel
SplunkTrust
SplunkTrust

Hi neptoon, It doesn't seem that there is an endpoint available in the REST interface, but you should be able to use the URL described here : https://answers.splunk.com/answers/223655/can-i-export-pdf-via-rest.html

curl -u admin:{{password}} -k 'https://localhost:8089/services/pdfgen/render?input-dashboard={{your_dashboard}}&namespace={{your_namespace}}&paper-size=a4-landscape' >> test.pdf

Please let me know if this answers your question!

Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...