<?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: Error by generating PDF from Search Results in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Error-by-generating-PDF-from-Search-Results/m-p/94778#M2157</link>
    <description>&lt;P&gt;From the error: seems like the results table is too large to fit on page.  The result table has 564 rows x 7 cols and probably its size is  423x1260  pixels.&lt;/P&gt;

&lt;P&gt;If you dont mind, can you share the data or a screen shot of what is expected?  &lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2013 17:51:13 GMT</pubDate>
    <dc:creator>nmistry_splunk</dc:creator>
    <dc:date>2013-07-15T17:51:13Z</dc:date>
    <item>
      <title>Error by generating PDF from Search Results</title>
      <link>https://community.splunk.com/t5/Reporting/Error-by-generating-PDF-from-Search-Results/m-p/94777#M2156</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;every day i generate 8 reports which are converted to PDF. Then 1 send them by using EMail to an internal EMail adress. One of the 8 searchresults cannot be converted to PDF, the following error is written to /opt/splunk/var/log/splunk/python.log. &lt;BR /&gt;
Any idea how to fix that? (sending the results as CSV is not the solution i am looking for :))&lt;/P&gt;

&lt;P&gt;Search:&lt;BR /&gt;
index=xxx sourcetype="xxx" earliest=-7d uri!="&lt;EM&gt;$FILE&lt;/EM&gt;" host!="xxx"| regex uri="(?i)\%[013456789].|\%[a-f]."| table _time, host, clientip, method, uri, status&lt;/P&gt;

&lt;P&gt;Note: %20 to %29 not included in this search :); search works, results as expected (in splunk).&lt;/P&gt;

&lt;P&gt;OS: Linux xxx.xxxxx.xxxxx 2.6.18-348.4.1.el5 #1 SMP Fri Mar 22 05:41:51 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux&lt;BR /&gt;
CPU: 4 x Intel(R) Xeon(R) CPU X5680 @ 3.33GHz, 8GB Memory&lt;/P&gt;

&lt;P&gt;Logfile: /opt/splunk/var/log/splunk/python.log&lt;/P&gt;

&lt;P&gt;2013-07-15 07:36:47,876 +0200 ERROR     pdfgen_endpoint:187 - Exception raised while trying to render "WSL: Suche nach encodierten Zeichen ohne Leerzeichen (%20)" to PDF. Flowable &lt;TABLE&gt;...(423.275590551 x 1260) too large on page 2 in frame 'normal'(439.275590551 x 685.88976378*) of template 'Later'&lt;BR /&gt;
2013-07-15 07:36:47,919 ERROR An error occurred while generating a PDF of this report: Failed to fetch PDF (status = 400): Unable to render PDF.&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Exception raised while trying to render "WSL: Suche nach encodierten Zeichen ohne Leerzeichen (%20)" to PDF. Flowable &amp;lt;Table@0x07E5BF38 564 rows x 7 cols&amp;gt;...(423.275590551 x 1260) too large on page 2 in frame 'normal'(439.275590551 x 685.88976378*) of template 'Later'&lt;/LI&gt;&lt;/UL&gt;&lt;BR /&gt;
2013-07-15 07:36:47,955 INFO Sending email. subject="WSL: Suche nach encodierten Zeichen ohne Leerzeichen (%20)", results_link="xxxxxxxxxxxx", recipients="['&lt;A href="mailto:xxxxx@xxx.xx" target="_blank"&gt;xxxxx@xxx.xx&lt;/A&gt;']"&lt;P&gt;&lt;/P&gt;

&lt;P&gt;sincerely oliver&lt;/P&gt;
&lt;/TABLE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:20:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Error-by-generating-PDF-from-Search-Results/m-p/94777#M2156</guid>
      <dc:creator>oHable</dc:creator>
      <dc:date>2020-09-28T14:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error by generating PDF from Search Results</title>
      <link>https://community.splunk.com/t5/Reporting/Error-by-generating-PDF-from-Search-Results/m-p/94778#M2157</link>
      <description>&lt;P&gt;From the error: seems like the results table is too large to fit on page.  The result table has 564 rows x 7 cols and probably its size is  423x1260  pixels.&lt;/P&gt;

&lt;P&gt;If you dont mind, can you share the data or a screen shot of what is expected?  &lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2013 17:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Error-by-generating-PDF-from-Search-Results/m-p/94778#M2157</guid>
      <dc:creator>nmistry_splunk</dc:creator>
      <dc:date>2013-07-15T17:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error by generating PDF from Search Results</title>
      <link>https://community.splunk.com/t5/Reporting/Error-by-generating-PDF-from-Search-Results/m-p/94779#M2158</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;thanks a lot for the fast response.&lt;/P&gt;

&lt;P&gt;My solution is to define a kind of max field length by using the following rex:&lt;/P&gt;

&lt;P&gt;rex field=uri max_match=0 "(?&amp;lt; uri &amp;gt;.{0,128})"&lt;/P&gt;

&lt;P&gt;working search:&lt;BR /&gt;
index=xxx sourcetype="xxx" earliest=-7d uri!="$FILE" host!="xxx"| regex uri="(?i)%[013456789].|%[a-f]."| rex field=uri max_match=0 "(?&amp;lt; uri &amp;gt;.{0,128})"| table _time, host, clientip, method, uri, status&lt;/P&gt;

&lt;P&gt;works well, now the PDF is generated without any erros &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;sincerely oliver&lt;/P&gt;

&lt;H3&gt;Source: &lt;A href="http://splunk-base.splunk.com/answers/84053/how-to-set-max-column-length"&gt;http://splunk-base.splunk.com/answers/84053/how-to-set-max-column-length&lt;/A&gt;&lt;/H3&gt;</description>
      <pubDate>Tue, 16 Jul 2013 08:53:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Error-by-generating-PDF-from-Search-Results/m-p/94779#M2158</guid>
      <dc:creator>oHable</dc:creator>
      <dc:date>2013-07-16T08:53:47Z</dc:date>
    </item>
  </channel>
</rss>

