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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...