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
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?
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.
I'm actually trying, putting the path on the splunk settings, but the logo doesn't show up..
Make sure your custom logo is in .png format.
Sample Setup might look like this:
Settings/Server Settings/Email Settings/PDF Report Settings
mailserver = mymailserver
pdf.headerleft = logo
pdf.headerright = none
pdf.logopath = search:/image001
pdf.htmlimagerendering = 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