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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...