Reporting

is it possible to change the name of the PDF reports from PDF Server?

piebob
Splunk Employee
Splunk Employee

right now Splunk sends pdf reports named splunk-report.pdf. we'd like to change them so they include the date and possibly the topic of the report. is this possible? how?

Tags (2)
1 Solution

gareth
Splunk Employee
Splunk Employee

Unfortunately it's not possible in the current version of Splunk without modifying code

View solution in original post

0 Karma

yannK
Splunk Employee
Splunk Employee

In splunk 4.3.1, the sendemail.py script updates the filename with the timestamp.
see line 528
filename = '%s-%s.pdf' % (pdfviewfn[:50], datestamp)

jliu
Explorer

It's hard-coded. I changed the report-name in sendemail.py file.

jliu
Explorer

I checked report.py file, but I couldn't find a way to change the name.
Is it hard-coded?

0 Karma

fatdragon
Engager

splunk code ? can we modify following file and get it do change report-name to include date/report title to what's generated?

/opt/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/controllers/report.py

gareth
Splunk Employee
Splunk Employee

Unfortunately it's not possible in the current version of Splunk without modifying code

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...