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!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...