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!

Introducing the Splunk Community Dashboard Challenge!

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

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...