- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Exporting dashboard pdf using splunk-sdk
D644832
Loves-to-Learn
01-05-2024
04:57 AM
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?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
D644832
Loves-to-Learn
01-08-2024
05:11 AM
Thanks @tscroggins !
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
tscroggins
Influencer
01-05-2024
09:41 PM
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.
