Splunk Search

Replace default Splunk Logo with my own logo on PDF

Ant1D
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
1 Solution

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

View solution in original post

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

thambisetty_bal
Path Finder

Hi Ant1D,

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

0 Karma

strive
Influencer

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

Federica_92
Communicator

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

strive
Influencer

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

0 Karma

ChrisG
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

denisevw
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

Ant1D
Motivator

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

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...