<?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: External search command sendfile returned error code 1 in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/External-search-command-sendfile-returned-error-code-1/m-p/558811#M9299</link>
    <description>&lt;P&gt;Weird that this error appeared each time but no correlation was found.&lt;/P&gt;&lt;P&gt;In fact, it is all about the number of results, which exceeded 40k and the e-mail was not sent with the automatic report.&lt;/P&gt;&lt;P&gt;I have reduced the time span for the search from 1 year to 6 months and it worked like a charm.&lt;/P&gt;&lt;P&gt;Closing this as a solution.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 09:40:59 GMT</pubDate>
    <dc:creator>AdrianMCZ</dc:creator>
    <dc:date>2021-07-09T09:40:59Z</dc:date>
    <item>
      <title>External search command sendfile returned error code 1</title>
      <link>https://community.splunk.com/t5/Reporting/External-search-command-sendfile-returned-error-code-1/m-p/558295#M9283</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;My first case to this community as I am relatively new to Splunk detailing, would be the following:&lt;/P&gt;&lt;P&gt;I am encountering: External search command 'sendfile' returned error code 1. for the below search.&lt;/P&gt;&lt;P&gt;The savedsearch returns the correct results while ran independently, but the output is always the same when trying to send an automated report running the job described. Worth mentioning that if I sample the results, the report is sent, otherwise Splunk spits the error I am facing.&lt;/P&gt;&lt;P&gt;Do you know where can I look to fix it?&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;| savedsearch "savedsearchname"&lt;/P&gt;&lt;P&gt;| outputxls&lt;/P&gt;&lt;P&gt;[| stats count&lt;/P&gt;&lt;P&gt;| eval search=strftime(now(), "File_name_%Y%m%d.xlsx")&lt;/P&gt;&lt;P&gt;| fields search]&lt;/P&gt;&lt;P&gt;| sendfile "sender" "receiver"&lt;/P&gt;&lt;P&gt;[| stats count&lt;/P&gt;&lt;P&gt;| eval first=strftime(relative_time(now(),"-1y"), "Title of report - %d/%m/%Y")&lt;/P&gt;&lt;P&gt;| eval search = first+strftime(relative_time(now(),"@d")," and %d/%m/%Y")&lt;/P&gt;&lt;P&gt;| eval search = "\""+search+"\""&lt;/P&gt;&lt;P&gt;| fields search] "report testing insert text here"&lt;/P&gt;&lt;P&gt;[| stats count&lt;/P&gt;&lt;P&gt;| eval search=strftime(now(), "File_name_%Y%m%d.xlsx")&lt;/P&gt;&lt;P&gt;| fields search] "smtp.server"&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 10:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/External-search-command-sendfile-returned-error-code-1/m-p/558295#M9283</guid>
      <dc:creator>AdrianMCZ</dc:creator>
      <dc:date>2021-07-05T10:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: External search command sendfile returned error code 1</title>
      <link>https://community.splunk.com/t5/Reporting/External-search-command-sendfile-returned-error-code-1/m-p/558352#M9291</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234818"&gt;@AdrianMCZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please check splunkd.log file for errors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 05:17:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/External-search-command-sendfile-returned-error-code-1/m-p/558352#M9291</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-07-06T05:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: External search command sendfile returned error code 1</title>
      <link>https://community.splunk.com/t5/Reporting/External-search-command-sendfile-returned-error-code-1/m-p/558401#M9292</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;splunkd.log states:&lt;/P&gt;&lt;P&gt;WARN HttpListener - Socket error from x.x.x.x:51229 while idling: error 14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown&lt;/P&gt;&lt;P&gt;WARN SSLCommon - Received fatal SSL3 alert. ssl_state='SSLv3 read client key exchange A', alert_description='certificate unknown'.&lt;BR /&gt;&lt;BR /&gt;I have&lt;SPAN&gt;&amp;nbsp;checked that the certificate presented by my HEC and it is valid by running&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;openssl s_client -connect your.splunk.hec.server:8088 as described in&amp;nbsp; &lt;A href="https://community.splunk.com/t5/Archive/TCPDUMP-Command/m-p/454771" target="_self"&gt;TCPDUMP-Command&lt;/A&gt;&amp;nbsp;and the certificates are self-signed, as&amp;nbsp;No client certificate CA names sent is returned.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 12:54:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/External-search-command-sendfile-returned-error-code-1/m-p/558401#M9292</guid>
      <dc:creator>AdrianMCZ</dc:creator>
      <dc:date>2021-07-06T12:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: External search command sendfile returned error code 1</title>
      <link>https://community.splunk.com/t5/Reporting/External-search-command-sendfile-returned-error-code-1/m-p/558811#M9299</link>
      <description>&lt;P&gt;Weird that this error appeared each time but no correlation was found.&lt;/P&gt;&lt;P&gt;In fact, it is all about the number of results, which exceeded 40k and the e-mail was not sent with the automatic report.&lt;/P&gt;&lt;P&gt;I have reduced the time span for the search from 1 year to 6 months and it worked like a charm.&lt;/P&gt;&lt;P&gt;Closing this as a solution.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 09:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/External-search-command-sendfile-returned-error-code-1/m-p/558811#M9299</guid>
      <dc:creator>AdrianMCZ</dc:creator>
      <dc:date>2021-07-09T09:40:59Z</dc:date>
    </item>
  </channel>
</rss>

