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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...