<?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: HEC Error : Connection closed by peer in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473364#M81318</link>
    <description>&lt;P&gt;If my answer helped, please consider accepting and/or upvoting so that other memebers of the community can see it was useful.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 22:17:15 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2020-02-26T22:17:15Z</dc:date>
    <item>
      <title>HEC Error : Connection closed by peer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473359#M81313</link>
      <description>&lt;P&gt;02-13-2020 02:52:43.167 +0000 WARN  HttpListener - Socket error from XX.xx.xxx.xxx while accessing /services/collector: Connection closed by peer&lt;/P&gt;

&lt;P&gt;I am getting these errors, not sure why, any one is aware of this alert? Is there any impact of this error?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 16:04:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473359#M81313</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2020-02-17T16:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: HEC Error : Connection closed by peer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473360#M81314</link>
      <description>&lt;P&gt;What is XX.xx.xxx.xxx here? Is it streaming data to HEC?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 16:35:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473360#M81314</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-17T16:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: HEC Error : Connection closed by peer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473361#M81315</link>
      <description>&lt;P&gt;Yes it is streaming data to HEC&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 17:08:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473361#M81315</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2020-02-17T17:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: HEC Error : Connection closed by peer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473362#M81316</link>
      <description>&lt;P&gt;You might be getting more warnings/errors in splunkd logs for this IP. See if you can find any.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 17:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473362#M81316</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-17T17:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: HEC Error : Connection closed by peer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473363#M81317</link>
      <description>&lt;P&gt;That error just means that the client (peer) disconnected albeit not gracefully.&lt;/P&gt;

&lt;P&gt;It and of itself, may not indicate any issue. It may have just been that the remote client had finished sending data and dropped the connection.&lt;/P&gt;

&lt;P&gt;Or it could be any number of other things, such as network disruption.&lt;BR /&gt;
The challenge is working out which...&lt;/P&gt;

&lt;P&gt;If you see it for nearly every request - that would strongly suggest that your sending application is not closing the connection when it has finished data. Again, not a massive issue, but ideally your sending application would close the connection once it has finished.&lt;/P&gt;

&lt;P&gt;The problem is that depending on the libraries used by your client app, the requirement to close a connection can be ambiguous and abstracted away from the library in question. &lt;BR /&gt;
See: &lt;A href="https://stackoverflow.com/questions/10115126/python-requests-close-http-connection"&gt;https://stackoverflow.com/questions/10115126/python-requests-close-http-connection&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you maintain the HEC client code, review it and see if you can gracefully close the socket after the http session is finished - if you can't don't sweat it too much. &lt;/P&gt;

&lt;P&gt;You could argue that it should be an INFO message rather than WARN, but in the case that your client does behave itself nicely, WARNs could be useful to diagnose network problems.&lt;/P&gt;

&lt;P&gt;In short, if your environment is working and data is arriving on time then don't worry about it too much.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 17:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473363#M81317</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-17T17:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: HEC Error : Connection closed by peer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473364#M81318</link>
      <description>&lt;P&gt;If my answer helped, please consider accepting and/or upvoting so that other memebers of the community can see it was useful.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 22:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-Error-Connection-closed-by-peer/m-p/473364#M81318</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-26T22:17:15Z</dc:date>
    </item>
  </channel>
</rss>

