Alerting

Why does PDF generation with custom logo for alerts fail?

bohanlon_splunk
Splunk Employee
Splunk Employee

I have set a custom image/logo for my generated alerts.

My Setup:
OS=CentOS07
Splunk=6.5.0
Architecture=Standalone instance (SH and IDXer in one box)
$SPLUNK_HOME=/opt/splunk6.5.0

My Config
./etc/system/local/alert_actions.conf
[email]
mailserver = mymailserver
pdf.header_left = logo
pdf.header_right = none
pdf.logo_path = search:myfolder/image001
pdf.html_image_rendering = 0

I have put my custom image here:
/opt/splunk6.5.0/etc/apps/search/appserver/static/myfolder/image001.png

PDF generation is broken with error of this form in $SPLUNK_HOME/var/log/splunk/pdfgen.log;
"pdfrenderer:427 - Failed to retrieve customize logo error [Errno 2] No such file or directory:"

0 Karma
1 Solution

bohanlon_splunk
Splunk Employee
Splunk Employee

Cause:
This appears to be a defect with the PDF generator's handling of folders.
Splunk bug reference = SPL-136094

Workaround:
When I put images here;
/opt/splunk6.5.0/etc/apps/search/appserver/static/
Result = Working fine with my image.

When I put images here;
/opt/splunk6.5.0/etc/apps/search/appserver/static/myfolder
Result = PDF generation breaks with error of the form;
"pdfrenderer:427 - Failed to retrieve customize logo error [Errno 2] No such file or directory:"

View solution in original post

bohanlon_splunk
Splunk Employee
Splunk Employee

Cause:
This appears to be a defect with the PDF generator's handling of folders.
Splunk bug reference = SPL-136094

Workaround:
When I put images here;
/opt/splunk6.5.0/etc/apps/search/appserver/static/
Result = Working fine with my image.

When I put images here;
/opt/splunk6.5.0/etc/apps/search/appserver/static/myfolder
Result = PDF generation breaks with error of the form;
"pdfrenderer:427 - Failed to retrieve customize logo error [Errno 2] No such file or directory:"

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...