Archive
Highlighted

Replace default Splunk Logo with my own logo on PDF

Motivator

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

Tags (2)
0 Karma
Highlighted

Re: Replace default Splunk Logo with my own logo on PDF

Path Finder

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?

0 Karma
Highlighted

Re: Replace default Splunk Logo with my own logo on PDF

Motivator

If this is the case, then maybe it will become a feature in one of the future releases

0 Karma
Highlighted

Re: Replace default Splunk Logo with my own logo on PDF

Splunk Employee
Splunk Employee

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.

0 Karma
Highlighted

Re: Replace default Splunk Logo with my own logo on PDF

Influencer

Update -- Splunk 6.3 allows you to set your own logo

Highlighted

Re: Replace default Splunk Logo with my own logo on PDF

Communicator

I'm actually trying, putting the path on the splunk settings, but the logo doesn't show up..

Highlighted

Re: Replace default Splunk Logo with my own logo on PDF

Influencer

Are you using Splunk 6.3?
How are you setting the path. Could you please add your configurations here..

0 Karma
Highlighted

Re: Replace default Splunk Logo with my own logo on PDF

Path Finder

Hi Ant1D,

Has your above query been answered? if not, let me know. I will provide you solution.

0 Karma
Highlighted

Re: Replace default Splunk Logo with my own logo on PDF

Splunk Employee
Splunk Employee

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/alertactions.conf
[email]
mailserver = mymailserver
pdf.header
left = logo
pdf.headerright = none
pdf.logo
path = 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

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...

View solution in original post