Security

Changing fonts in Scheduled PDF reports - Splunk 4.1 - Ubuntu based

Username
New Member

Hi,

I have configured Splunk PDF Print server and Splunk 4.1 on Ubuntu.

http://www.freeimagehosting.net/uploads/55fa25f0df.png

As shown in above screenshot [check the link], my default PDF Scheduled report comes with crapy fonts, in events. Only chart is visible. Can we change fonts of PDF reports?

With Regards, Nrupak Shah

Tags (1)
0 Karma

Starlette
Contributor

$sudo apt-get install msttcorefonts

this pack works for me///

0 Karma

Username
New Member

Hey jrodman, Lowell

Thanks for your help. I have installed new fonts, and also modified fonts in default.css at below location, and its done.

/* Basic Typography -------------------------*/ body, td { font-family:Bitstream Charter,DejaVu Serif; font-size:14px; color: #111; }

But still I am unable to change the font size of text displayed as labels inside a chart.

With Regards, Nrupak D Shah

0 Karma

Chris_R_
Splunk Employee
Splunk Employee

Just curious as to what file name you made the CSS changes to etc/apps/pdfserver/ ?

0 Karma

Username
New Member

Hi Lowell,

I had to install DejaVu fonts in order to use it, and then i had to make changed in CSS so that it will reflect in Splunk, because by default splunk was using some different fonts.

0 Karma

Lowell
Super Champion

Keep in mind that all charting is handled using Flash. So I'm not sure how you would go about changing that, or if it's possible at all. Out of curiosity, was the CSS change necessary for you to see an improved font, or due to a font-size preference? (In other words, did installing DejaVu help, or was it your CSS change that made the difference?)

0 Karma

Lowell
Super Champion

I setup the pdf server on Ubuntu 8.04, and installed the DejaVu fonts that were recommend by Ubuntu's firefox package. (Prior to setting up Splunk pdfreport app, we had no X install at all, so I had to install a handful of packages to satisfy firefox's dependencies.)

You should be able to install the DejaVu fonts with this:

sudo apt-get install ttf-dejavu-extra ttf-dejavu-core ttf-dejavu

This may or may not be your issue. For the purpose of tracking down the problem, try opening the PDF with Adobe's reader. Pull up the document properties, check out the font tab and see which fonts are being used in the document.

RohiniJindam
Path Finder

You mention you installed some packages. Can you please let me know what packages you installed because i am also facing dependency issues. Thanks

0 Karma

jrodman
Splunk Employee
Splunk Employee

The method of creating the pdf is to run an html rendering engine on the content, which emits a pdf. The fonts it uses are likely to be the system fonts on the server where Splunk is installed.

My first guess, then, is to try installing some additional fonts on that server.

Get Updates on the Splunk Community!

Splunk Training for All: Meet Aspiring Cybersecurity Analyst, Marc Alicea

Splunk Education believes in the value of training and certification in today’s rapidly-changing data-driven ...

Investigate Security and Threat Detection with VirusTotal and Splunk Integration

As security threats and their complexities surge, security analysts deal with increased challenges and ...

Observability Highlights | January 2023 Newsletter

 January 2023New Product Releases Splunk Network Explorer for Infrastructure MonitoringSplunk unveils Network ...