Why am I unable to generate a PDF for an email alert?



Recently, I have been rexieving this error in python.log on my search head. As a result of the error, an email alert still gets sent out, but there is no PDF attached to it. Instead, it says "An error occurred while generating the PDF. Please see python.log for details."

2018-04-25 00:02:17,805 -0400 ERROR sendemail:1074 - An error occurred while generating a PDF: Failed to fetch PDF (status = 400): Unable to render PDF.&lt;br/&gt;<ul><li>Exception raised while trying to prepare "*" for rendering to PDF. Splunkd daemon is not responding: ("Error connecting to /servicesNS/**/search/parser: ('The read operation timed out',)",)</li></ul>
0 Karma

Splunk Employee
Splunk Employee

"Splunkd daemon is not responding: The read operation timed out" error indicates that generating PDF program timed out. It's worth increasing splunkdConnectionTimeout attribute in web.conf.

splunkdConnectionTimeout = <integer>
* Number of seconds to wait before timing out when communicating with
* Must be at least 30
* Values smaller than 30 will be ignored, resulting in the use of the
  default value
* Defaults to 30
0 Karma

Splunk Employee
Splunk Employee

Are you using any advanced XML or HTML in your dashboard? PDF rendering is not supported there.

From docs (link here:

PDFs in languages, such as Hebrew, where text should appear in right to left order, are rendered with text in left to right order.
PDFs for dashboards with multiple panels in a row might generate with only a single panel per row.
You cannot generate PDFs of dashboards that are built using advanced XML or HTML. PDF generation works only with dashboards built with simple XML.
You cannot generate PDFs for forms.
PDF generation ignores charting customizations that are not supported by the JSChart charting library. The finished PDF displays the panels as rendered in JSChart with the unsupported customizations removed.

0 Karma
Get Updates on the Splunk Community!

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...

Reminder! Splunk Love Promo: $25 Visa Gift Card for Your Honest SOAR Review With ...

We recently launched our first Splunk Love Special, and it's gone phenomenally well, so we're doing it again, ...