<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why is scheduled report pdf email not received if it takes more than one hour? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148459#M3277</link>
    <description>&lt;P&gt;Also when i manually execute I got this error.&lt;/P&gt;

&lt;P&gt;Script execution failed for external search command 'sendemail'&lt;/P&gt;

&lt;P&gt;But i have other reports takes less then 1 hour to finish they all work and i receive pdf emails.&lt;BR /&gt;
But i have problem on only on this report&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jul 2014 14:28:14 GMT</pubDate>
    <dc:creator>safe_splunk</dc:creator>
    <dc:date>2014-07-18T14:28:14Z</dc:date>
    <item>
      <title>Why is scheduled report pdf email not received if it takes more than one hour?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148456#M3274</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I prepared a dashboard and a scheduled pdf delivery, but when it takes more than an hour, I receive no email at all. When it takes less than 1 hour, I receive pdf report properly. &lt;/P&gt;

&lt;P&gt;What should I do to receive report if it takes more than an hour? &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2014 08:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148456#M3274</guid>
      <dc:creator>safe_splunk</dc:creator>
      <dc:date>2014-07-18T08:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is scheduled report pdf email not received if it takes more than one hour?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148457#M3275</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please change default settings in "pdf_server.conf" in $SPLUNK_HOME/etc/system/default.&lt;BR /&gt;
Note: Please do any changes locally by copying into $SPLUNK_HOME/etc/system/local&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;tools.sessions.timeout = &amp;lt;integer&amp;gt;
   * Specifies the number of minutes of inactivity before a user session expires.
   * Defaults to 60

response.timeout = &amp;lt;integer&amp;gt;
   * Specifies the number of seconds to wait for the server to complete a response.
   * Some requests such as uploading large files can take a long time.
   * Defaults to 7200
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:07:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148457#M3275</guid>
      <dc:creator>ankireddy007</dc:creator>
      <dc:date>2020-09-28T17:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why is scheduled report pdf email not received if it takes more than one hour?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148458#M3276</link>
      <description>&lt;P&gt;No it did not work. I did exactly as you mentioned. &lt;/P&gt;

&lt;P&gt;This is inspect OUTPUT below. some ip/mail/address i change. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;None | sendemail "server=x" "use_ssl=0" "use_tls=0" "to=test@gmail.com," "cc=" "bcc=" "from=splunk@warn.x.com" "subject=Splunk Report: _ScheduledView__search_engine_bots" "format=html" "sssummary=Saved Search [_ScheduledView__search_engine_bots]: always(0)" "sslink=search/@go?sid=" "ssquery=| noop" "ssname=_ScheduledView__search_engine_bots" "inline=0" "sendresults=1" "sendpdf=1" "pdfview=search_engine_bots" "searchid=" "width_sort_columns=1" "graceful=True" maxinputs="10000" maxtime="60m" "papersize=letter" "paperorientation=landscape"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When i look jobs searches takes 1 hour and 15 minutes and they go till finish but scheduled delivery pdf stops exact as 1:00 hour. &lt;/P&gt;

&lt;P&gt;over the time range:&lt;/P&gt;

&lt;P&gt;1/1/70 2:00:01.000 AM – 1/1/70 2:00:02.000 AM&lt;BR /&gt;
did not return any data. Possible solutions are to:&lt;/P&gt;

&lt;P&gt;relax the primary search criteria&lt;BR /&gt;
widen the time range of the search&lt;BR /&gt;
check that the default search indexes for your account include the desired indexes&lt;BR /&gt;
This search is an instance of the saved search: &lt;EM&gt;ScheduledView&lt;/EM&gt;_search_engine_bots.&lt;/P&gt;

&lt;P&gt;The following messages were returned by the search subsystem:&lt;/P&gt;

&lt;P&gt;DEBUG: The 'sendemail' command is implemented as an external script and may cause the search to be significantly slower.&lt;BR /&gt;
DEBUG: search context: user="admin", app="search", bs-pathname="/opt/splunk/etc"&lt;BR /&gt;
ERROR: Script execution failed for external search command 'sendemail'&lt;BR /&gt;
Learn more about troubleshooting empty search results at Splunk Documentation.&lt;/P&gt;

&lt;P&gt;(SID: scheduler_&lt;EM&gt;admin&lt;/EM&gt;&lt;EM&gt;search&lt;/EM&gt;_RMD5f3b1710c906edb28_at_1405687200_30)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148458#M3276</guid>
      <dc:creator>safe_splunk</dc:creator>
      <dc:date>2020-09-28T17:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why is scheduled report pdf email not received if it takes more than one hour?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148459#M3277</link>
      <description>&lt;P&gt;Also when i manually execute I got this error.&lt;/P&gt;

&lt;P&gt;Script execution failed for external search command 'sendemail'&lt;/P&gt;

&lt;P&gt;But i have other reports takes less then 1 hour to finish they all work and i receive pdf emails.&lt;BR /&gt;
But i have problem on only on this report&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2014 14:28:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148459#M3277</guid>
      <dc:creator>safe_splunk</dc:creator>
      <dc:date>2014-07-18T14:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why is scheduled report pdf email not received if it takes more than one hour?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148460#M3278</link>
      <description>&lt;P&gt;This is the timeout that needs to increase: from the file &lt;/P&gt;

&lt;P&gt;./etc/apps/search/bin/sendemail.py&lt;/P&gt;

&lt;P&gt;PDF_REPORT_SERVER_TIMEOUT = 600 &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
PDFGEN_SIMPLE_REQUEST_TIMEOUT = 3600&lt;/P&gt;

&lt;P&gt;As you can see, the second parameter is used further down in the simpleRequest call, so it needs  to be increased:&lt;/P&gt;

&lt;P&gt;response, content = simpleRequest("pdfgen/render", sessionKey = sessionKey, getargs = parameters, timeout = PDFGEN_SIMPLE_REQUEST_TIMEOUT)&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 12:34:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148460#M3278</guid>
      <dc:creator>mzorzi</dc:creator>
      <dc:date>2014-09-04T12:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is scheduled report pdf email not received if it takes more than one hour?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148461#M3279</link>
      <description>&lt;P&gt;Exactly as you mentioned solved all problems. &lt;BR /&gt;
So Anyone that has report searches that take more than an hour with pdf scheduled delivery must raise these intervals to receive email report. Otherwise it won't work. &lt;/P&gt;

&lt;P&gt;Thanks Matteo.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 12:39:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148461#M3279</guid>
      <dc:creator>safe_splunk</dc:creator>
      <dc:date>2014-09-04T12:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is scheduled report pdf email not received if it takes more than one hour?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148462#M3280</link>
      <description>&lt;P&gt;It looks like there is a bug in the Splunk sendemail and rest simplerequest code.  I had the situation where most of my reports would generate the PDFs correctly for emails.  However, I had a few alerts and 1 report that kept giving me a time out issue.&lt;/P&gt;

&lt;P&gt;In the /etc/apps/search/bin/sendemail.py script as mentioned by mzorzi, there is a default PDF timeout value that is defined.  Later in the sendemail.py code there is a rest remplerequest call that sends the timeout to that set of scripts.&lt;/P&gt;

&lt;P&gt;Those scripts are located in $SPLUNK_HOME/lib/python2.7/site-packages/splunk/rest.  The initialization script, &lt;STRONG&gt;init&lt;/STRONG&gt;.py, has a default timeout value called SPLUNKD_CONNECTION_TIMEOUT.  You can see where the simplerequest gets called with the timeout coming in from the sendemail program.&lt;/P&gt;

&lt;P&gt;I think what happens is the SplunkD timeout is occurring before the rest timeout happens.  Therefore, you have to update the splunkd connection timeout value because it will time out before the other time out happens.&lt;/P&gt;

&lt;P&gt;In my opinion, the timeout sent in from the calling program should override the default values.  The other problem is that to fix this, I had to change the default value in the python directory.  Next time we upgrade, this will get over-written.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148462#M3280</guid>
      <dc:creator>ronogle</dc:creator>
      <dc:date>2020-09-29T07:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why is scheduled report pdf email not received if it takes more than one hour?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148463#M3281</link>
      <description>&lt;P&gt;hi i have the same probleme on my Splunk Version ............................................6.3.3&lt;BR /&gt;
i want  generate a globaly report than make more than  5 hours  to complete &lt;/P&gt;

&lt;P&gt;i check &lt;BR /&gt;
PDF_REPORT_SERVER_TIMEOUT = 600&lt;BR /&gt;
PDFGEN_SIMPLE_REQUEST_TIMEOUT = 3600 is put on  sendemail.py  &lt;/P&gt;

&lt;P&gt;but always i have time out on sendmail and receice &lt;/P&gt;

&lt;P&gt;what can i do for my sendemail wait at max 24 hours before crash when sending a dashboard&lt;/P&gt;

&lt;P&gt;Cordialy &lt;BR /&gt;
romuald&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-is-scheduled-report-pdf-email-not-received-if-it-takes-more/m-p/148463#M3281</guid>
      <dc:creator>adminsecdsi</dc:creator>
      <dc:date>2020-09-29T09:20:18Z</dc:date>
    </item>
  </channel>
</rss>

