Security

While calling a macro with a PDF process, an error was thrown "'SearchParser': Could not find macro"?

rsimmons
Splunk Employee
Splunk Employee

While calling macro with PDF process a error is thrown - SearchParser': Could not find macro

Example of the error in the python.log:

2014-01-08 16:00:14,690 +0000 ERROR     pdfgen_endpoint:210 - Exception raised while trying to prepare "Pdf-test-macro" for rendering to PDF. Error in 'SearchParser': Could not find macro 'Pdf-test-macro' that takes 0 arguments. Expecting stanza name 'Pdf-test-macro'.
2014-01-08 16:00:14,691 +0000 ERROR     pdfgen_endpoint:216 - No views prepared without exceptions. Bailing out of Integrated PDF Generation.

Why is the Integrated PDF bailing out of the process?

1 Solution

rsimmons
Splunk Employee
Splunk Employee

The macros with permisions set to "this app only" will fail in the PDF generation. If the macros is private, then Splunk will give an error message if you try to schedule a PDF. The workaround is to change the permissions of the macros to global and then schedule the PDF.

View solution in original post

rsimmons
Splunk Employee
Splunk Employee

The macros with permisions set to "this app only" will fail in the PDF generation. If the macros is private, then Splunk will give an error message if you try to schedule a PDF. The workaround is to change the permissions of the macros to global and then schedule the PDF.

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...