Hey,
Is there a way in which I can export my dashboard pdf using python and splunk-sdk so as to get the same result you would if you clicked on the export button?
Thanks @tscroggins !
Hi @D644832,
You can use the undocumented pdfgen service, e.g.:
curl -k -X POST -u user:pass https://localhost:8089/services/pdfgen/render?input-dashboard=dashboard_name
The response body will have Content-Type: application/pdf, which you can save directly as a PDF file.
See $SPLUNK_HOME/etc/system/bin/pdfgen_endpoint.py or search the community for pdfgen for more information.