Reporting

How can static text be added to all panels globally and show up in PDFs?

kevinking
Explorer

I have a requirement to add static text to panels, and would like the text to show up in printouts and PDFs too.
This text needs to be on all dashboard panels, so I'd like to set it globally, then the users don't need to think about it.
I know it's not recommended, but I was able to modify the dashboard template to add the text to panels. Almost achieved what I wanted, except for forms and PDFs. Forms I think I'll be able to fix, but PDFs look like a problem.

Advanced xml views will be suggested, but

  • that would mean every panel would need to be manually modified.
  • advanced xml is too complicated for many users.

I'm hoping there's a solution that will allow users to use simple xml views.

I would appreciate any suggestions,
Thanks,
Kevin

0 Karma

kevinking
Explorer

Managed to accomplish this by changing 8 files.
Header for all pages:

/opt/splunk/share/splunk/search_mrsparkle/modules/nav/AccountBar.html

Panels:

/opt/splunk/share/splunk/search_mrsparkle/templates/view/dashboard.html

Search app events, table and chart views

/opt/splunk/share/splunk/search_mrsparkle/modules/results/EventViewer.html
/opt/splunk/share/splunk/search_mrsparkle/modules/results/SimpleResultsTable.py
/opt/splunk/etc/apps/search/default/data/ui/views/flashtimeline.xml

PDFs:

/opt/splunk/lib/python2.7/site-packages/reportlab/lib/styles.py  (optional style)
/opt/splunk/lib/python2.7/site-packages/splunk/pdf/pdfrenderer.py
/opt/splunk/etc/system/bin/pdfgen_endpoint.py

And it will all have to be repeated following an upgrade....

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...