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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...