<?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 [Splunk HTTP Event Collector] Having trouble connecting to HEC port. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-Having-trouble-connecting-to-HEC/m-p/491908#M84076</link>
    <description>&lt;P&gt;We are often seeing the following error messages from HEC servers and users are complaining of failures connecting to HEC: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04-16-2020 19:02:04.513 +0000 WARN HttpListener - Socket error from 10.1.32.176:3655 while accessing /services/collector/event/1.0: Connection reset by peer
04-16-2020 19:21:51.387 +0000 WARN HttpListener - HTTP active connections down to 1354, unthrottling
04-16-2020 19:21:51.354 +0000 WARN HttpListener - 1365 HTTP connections active, throttling
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 May 2020 22:05:01 GMT</pubDate>
    <dc:creator>sylim_splunk</dc:creator>
    <dc:date>2020-05-06T22:05:01Z</dc:date>
    <item>
      <title>[Splunk HTTP Event Collector] Having trouble connecting to HEC port.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-Having-trouble-connecting-to-HEC/m-p/491908#M84076</link>
      <description>&lt;P&gt;We are often seeing the following error messages from HEC servers and users are complaining of failures connecting to HEC: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04-16-2020 19:02:04.513 +0000 WARN HttpListener - Socket error from 10.1.32.176:3655 while accessing /services/collector/event/1.0: Connection reset by peer
04-16-2020 19:21:51.387 +0000 WARN HttpListener - HTTP active connections down to 1354, unthrottling
04-16-2020 19:21:51.354 +0000 WARN HttpListener - 1365 HTTP connections active, throttling
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 May 2020 22:05:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-Having-trouble-connecting-to-HEC/m-p/491908#M84076</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2020-05-06T22:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: [Splunk HTTP Event Collector] Having trouble connecting to HEC port.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-Having-trouble-connecting-to-HEC/m-p/491909#M84077</link>
      <description>&lt;P&gt;The number 1365 is limited by the open files, 4096 in ulimit ( 3 X 1365 = 4095) . To avoid the connectivity issue itself you can increase the open files by modifying the etc/security/limits.conf in Linux. If you find it is there already then consider to add it to splunk start up script &lt;BR /&gt;
i) initd script,  add the below and change the start/restart to call the function&lt;/P&gt;

&lt;H1&gt;set_ulimit function to configure ulimits&lt;/H1&gt;

&lt;P&gt;set_ulimits() {&lt;BR /&gt;
ulimit -Hn 65535&lt;BR /&gt;
ulimit -Sn 65535&lt;BR /&gt;
} &lt;/P&gt;

&lt;H1&gt;Add the fuction for start/restart&lt;/H1&gt;

&lt;P&gt;start)&lt;BR /&gt;
set_ulimits&lt;BR /&gt;
splunk_start&lt;BR /&gt;
;;&lt;/P&gt;

&lt;P&gt;restart)&lt;BR /&gt;
set_ulimits&lt;BR /&gt;
splunk_restart&lt;/P&gt;

&lt;P&gt;ii) Under systemd you can increase it using LimitNOFILE&lt;BR /&gt;
[Service]&lt;BR /&gt;
Type=simple&lt;BR /&gt;
Restart=always&lt;BR /&gt;
ExecStart=/home/splunk/s734/bin/splunk _internal_launch_under_systemd&lt;BR /&gt;
LimitNOFILE=655360  &lt;/P&gt;

&lt;P&gt;But 1300+ HEC connections are very high you may want to monitor the performance over the network, like netstat -an will show if the TCP Recv queue is building up or not. Then you may need to load balance the # of connections by spawning another HEC receiver.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:19:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-Having-trouble-connecting-to-HEC/m-p/491909#M84077</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2020-09-30T05:19:16Z</dc:date>
    </item>
  </channel>
</rss>

