Hi,
When I export to PDF the default Splunk logo appears on the bottom right of the generated PDF. I am aware that this can be hidden but instead I would like to replace this logo with my own company logo.
How can I go about getting my company logo added to Splunk generated PDFs?
Thanks in advance for your help
Make sure your custom logo is in .png format.
Sample Setup might look like this:
Via GUI:
Settings/Server Settings/Email Settings/PDF Report Settings
Via CLI:
./etc/system/local/alert_actions.conf
[email]
mailserver = mymailserver
pdf.header_left = logo
pdf.header_right = none
pdf.logo_path = search:/image001
pdf.html_image_rendering = 0
Put the custom image here: /opt/splunk/etc/apps/search/appserver/static/image001.png
Test via Ad-Hoc Search:
"index=main | head 5 | sendemail to= server= subject="Here is an email notification" message="This is an example message" sendresults=true inline=true format=raw sendpdf=true"
As per: http://docs.splunk.com/Documentation/Splunk/latest/Alert/Emailnotification
Errors log to: /opt/splunk/var/log/splunk/pdfgen.log
Further Reading:
http://docs.splunk.com/Documentation/Splunk/latest/Admin/Alertactionsconf
http://docs.splunk.com/Documentation/Splunk/latest/Alert/Emailnotification
https://answers.splunk.com/answers/495250/pdf-generation-with-custom-logo-failing.html?minQuestionBo...
Make sure your custom logo is in .png format.
Sample Setup might look like this:
Via GUI:
Settings/Server Settings/Email Settings/PDF Report Settings
Via CLI:
./etc/system/local/alert_actions.conf
[email]
mailserver = mymailserver
pdf.header_left = logo
pdf.header_right = none
pdf.logo_path = search:/image001
pdf.html_image_rendering = 0
Put the custom image here: /opt/splunk/etc/apps/search/appserver/static/image001.png
Test via Ad-Hoc Search:
"index=main | head 5 | sendemail to= server= subject="Here is an email notification" message="This is an example message" sendresults=true inline=true format=raw sendpdf=true"
As per: http://docs.splunk.com/Documentation/Splunk/latest/Alert/Emailnotification
Errors log to: /opt/splunk/var/log/splunk/pdfgen.log
Further Reading:
http://docs.splunk.com/Documentation/Splunk/latest/Admin/Alertactionsconf
http://docs.splunk.com/Documentation/Splunk/latest/Alert/Emailnotification
https://answers.splunk.com/answers/495250/pdf-generation-with-custom-logo-failing.html?minQuestionBo...
Hi Ant1D,
Has your above query been answered? if not, let me know. I will provide you solution.
Update -- Splunk 6.3 allows you to set your own logo
I'm actually trying, putting the path on the splunk settings, but the logo doesn't show up..
Are you using Splunk 6.3?
How are you setting the path. Could you please add your configurations here..
There is no supported way to do it, per this previous Answers posting. Anything you hacked into the scripts could have unintended consequences and would be overwritten on upgrade.
It is a good enhancement request, I agree.
Hi there
Splunk is using pdfkit and coffee-script for the pdf reports. Not sure if you are allowed to edit those, as per terms and conditions from Splunk?
If this is the case, then maybe it will become a feature in one of the future releases