Refine your search:

Hello, I was trying to send a pdf report thru email by using a saved search, and in the email an error messages display and no PDF attached.

An error occurred while generating a PDF of this report: Failed to generate PDF: PDF server at /services/pdfserver/renderpdf returned error: Failed to generate a report using Firefox:[timeout] Timed out while waiting for the page to fully render

I am suspecting that the search run too long. Is there a way to increase the timeout limit?

Thanks.

asked 08 Jul '10, 10:35

alextsui's gravatar image

alextsui
2193321
accept rate: 0%

edited 26 Jul '10, 22:44

Justin%20Grant's gravatar image

Justin Grant
1.7k181860

After checking with Splunk's log, the saved search in question only took less than 10 seconds to complete. The result csv file is 849 KB in size and contains about 6k of events. I no longer think the timeout is caused by search running too long.

(15 Jul '10, 08:14) alextsui

2 Answers:

There is a setting that dictates how long firefox will wait to receive the completed search from the Splunk server. You can increase this timeout by setting the firefox_timeout value on the pdf_server side. This setting would reside under the [settings] stanza in $SPLUNK_HOME/etc/apps/pdfserver/local/pdf_server.conf.

[settings]
screenshot_enabled = True
restrict_to_splunkweb = False
firefox_timeout = 340

I believe the default is a four minutes (240), so increase this to something greater than the search job duration.

link

answered 08 Jul '10, 15:38

Simeon's gravatar image

Simeon ♦
4.1k91034
accept rate: 26%

Thanks Simeon. But after increase the firefox_timeout to 240(or 300, I believe the default timeout value is 180), emails that should at least have the PDF server error message has stopped sending. And I no longer think the error is caused by the saved search running too long. The saved search took less than 10 seconds to complete according to the savedsplunker log.

(15 Jul '10, 08:10) alextsui

I have tried your suggestion. However, after making the change, splunk could not send the mail.

link

answered 09 Jul '10, 06:29

shirolu's gravatar image

shirolu
3516
accept rate: 0%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×248

Asked: 08 Jul '10, 10:35

Seen: 1,746 times

Last updated: 26 Jul '10, 22:44

Copyright © 2005-2012 Splunk Inc. All rights reserved.