<?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: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393814#M3362</link>
    <description>&lt;P&gt;Hi @sarvesh_11,&lt;/P&gt;

&lt;P&gt;You're &lt;CODE&gt;open files (-n)&lt;/CODE&gt;limit is still at 1024. You should increase that for the Splunk user, and should also increase the soft limit.&lt;/P&gt;

&lt;P&gt;Try something like this in your limits.conf file :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*    hard    nofile     64000
*    soft    nofile     64000
*    hard    nproc     8192
*    soft    nproc     8192
*    hard    fsize      -1  
*    soft    fsize      -1  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or like this if that doesn't work :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/Troubleshooting/ulimitErrors#Set_limits_using_the_.2Fetc.2Fsystemd_configuration_files"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/Troubleshooting/ulimitErrors#Set_limits_using_the_.2Fetc.2Fsystemd_configuration_files&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 07:03:09 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2019-05-29T07:03:09Z</dc:date>
    <item>
      <title>HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393813#M3361</link>
      <description>&lt;P&gt;I am frequently getting warning for Socket.&lt;/P&gt;
&lt;P&gt;WARN HttpListener - Socket error from 127.0.0.1 while accessing /servicesNS/nobody//data/inputs/rest/*/: Broken pipe&lt;BR /&gt;source = /opt/splunk/var/log/splunk/splunkd.log sourcetype = splunkd&lt;/P&gt;
&lt;P&gt;i have checked below answers, but unable to resolve my query:&lt;BR /&gt;&lt;A href="https://answers.splunk.com/answers/105292/what-is-the-cause-of-these-socket-errors-reported-in-splunkd-log-since-upgrading-to-6-0.html" target="_blank"&gt;https://answers.splunk.com/answers/105292/what-is-the-cause-of-these-socket-errors-reported-in-splunkd-log-since-upgrading-to-6-0.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;limits:&lt;BR /&gt;maxthread=0&lt;BR /&gt;maxsocket=0&lt;/P&gt;
&lt;P&gt;INFO loader - Limiting REST HTTP server to 1365 threads&lt;BR /&gt;INFO loader - Limiting REST HTTP server to 1365 sockets&lt;/P&gt;
&lt;P&gt;ulimit -a&lt;BR /&gt;core file size (blocks, -c) 0&lt;BR /&gt;data seg size (kbytes, -d) unlimited&lt;BR /&gt;scheduling priority (-e) 0&lt;BR /&gt;file size (blocks, -f) unlimited&lt;BR /&gt;pending signals (-i) 47488&lt;BR /&gt;max locked memory (kbytes, -l) 64&lt;BR /&gt;max memory size (kbytes, -m) unlimited&lt;BR /&gt;open files (-n) 1024&lt;BR /&gt;pipe size (512 bytes, -p) 8&lt;BR /&gt;POSIX message queues (bytes, -q) 819200&lt;BR /&gt;real-time priority (-r) 0&lt;BR /&gt;stack size (kbytes, -s) 10240&lt;BR /&gt;cpu time (seconds, -t) unlimited&lt;BR /&gt;max user processes (-u) 8192&lt;BR /&gt;virtual memory (kbytes, -v) unlimited&lt;BR /&gt;file locks (-x) unlimited&lt;/P&gt;
&lt;P&gt;/etc/security/limits.conf&lt;BR /&gt;* hard nofile 64000&lt;BR /&gt;* hard nproc 8192&lt;BR /&gt;* hard fsize -1&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 02:05:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393813#M3361</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2020-06-06T02:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393814#M3362</link>
      <description>&lt;P&gt;Hi @sarvesh_11,&lt;/P&gt;

&lt;P&gt;You're &lt;CODE&gt;open files (-n)&lt;/CODE&gt;limit is still at 1024. You should increase that for the Splunk user, and should also increase the soft limit.&lt;/P&gt;

&lt;P&gt;Try something like this in your limits.conf file :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*    hard    nofile     64000
*    soft    nofile     64000
*    hard    nproc     8192
*    soft    nproc     8192
*    hard    fsize      -1  
*    soft    fsize      -1  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or like this if that doesn't work :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/Troubleshooting/ulimitErrors#Set_limits_using_the_.2Fetc.2Fsystemd_configuration_files"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/Troubleshooting/ulimitErrors#Set_limits_using_the_.2Fetc.2Fsystemd_configuration_files&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 07:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393814#M3362</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-29T07:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393815#M3363</link>
      <description>&lt;P&gt;Hey @DavidHourani ,&lt;BR /&gt;
Thanks for dropping by.&lt;BR /&gt;
Later posting the question i soon realized that, and made the changes in limits.conf&lt;/P&gt;

&lt;P&gt;@splunk         hard    nofile          64000&lt;BR /&gt;
@splunk         hard    nproc           8192&lt;BR /&gt;
@splunk         hard    fsize           -1&lt;BR /&gt;
@splunk         soft    nofile          64000&lt;BR /&gt;
@splunk         soft    nproc           8192&lt;BR /&gt;
@splunk         soft    fsize           -1&lt;/P&gt;

&lt;P&gt;ulimit -a&lt;BR /&gt;
core file size          (blocks, -c) 0&lt;BR /&gt;
data seg size           (kbytes, -d) unlimited&lt;BR /&gt;
scheduling priority             (-e) 0&lt;BR /&gt;
file size               (blocks, -f) unlimited&lt;BR /&gt;
pending signals                 (-i) 47488&lt;BR /&gt;
max locked memory       (kbytes, -l) 64&lt;BR /&gt;
max memory size         (kbytes, -m) unlimited&lt;BR /&gt;
open files                      (-n) 64000&lt;BR /&gt;
pipe size            (512 bytes, -p) 8&lt;BR /&gt;
POSIX message queues     (bytes, -q) 819200&lt;BR /&gt;
real-time priority              (-r) 0&lt;BR /&gt;
stack size              (kbytes, -s) 10240&lt;BR /&gt;
cpu time               (seconds, -t) unlimited&lt;BR /&gt;
max user processes              (-u) 8192&lt;BR /&gt;
virtual memory          (kbytes, -v) unlimited&lt;BR /&gt;
file locks                      (-x) unlimited&lt;/P&gt;

&lt;P&gt;still the issue persist.&lt;BR /&gt;
Also, just while checking the app owner, i can see different users(root,splunk,), so shall i change the owner to splunk for all the apps?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 07:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393815#M3363</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2019-05-29T07:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393816#M3364</link>
      <description>&lt;P&gt;you can use &lt;CODE&gt;*&lt;/CODE&gt; for now for the user in &lt;CODE&gt;/etc/security/limits.conf&lt;/CODE&gt;. And restart splunk after changing that setting and check the _internal logs for ulimit to double check that Splunk also reads the right ulimits. if you run the following search you should get the relevant lines :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal  component=ulimit
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 07:23:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393816#M3364</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-29T07:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393817#M3365</link>
      <description>&lt;P&gt;@DavidHourani &lt;BR /&gt;
Thanks much man!&lt;BR /&gt;
The changes are replicated, i shall get back to you if still the "Break pipe" error is there&lt;/P&gt;

&lt;P&gt;Thanks alot for your prompt response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 07:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393817#M3365</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2019-05-29T07:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393818#M3366</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/68181"&gt;@DavidHourani&lt;/a&gt; ,&lt;BR /&gt;
Hey David, the error is still coming. THe changes of lmits are reflected, but still &lt;/P&gt;

&lt;P&gt;Socket error from 127.0.0.1 while accessing /servicesNS/nobody//data/inputs/rest/http_connections_*/: Broken pipe.&lt;/P&gt;

&lt;P&gt;Or i need to change maxSockets and maxThreads to negative integer?&lt;BR /&gt;
currently it is 0&lt;BR /&gt;
Any more remedies you have for this?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393818#M3366</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2020-09-30T00:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393819#M3367</link>
      <description>&lt;P&gt;yeah try the maxSockets and maxThreads to -1 see if it helps, any other errors you're getting ?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 08:16:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393819#M3367</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-29T08:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393820#M3368</link>
      <description>&lt;P&gt;Yeah, few more and related to that only:&lt;/P&gt;

&lt;P&gt;"ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/rest_ta/bin/rest.py" HTTP Request error: 500 Server Error: Internal Server Error"&lt;/P&gt;

&lt;P&gt;"ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/Splunk_TA_box/bin/box_service.py"   InsecureRequestWarning)"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:43:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393820#M3368</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2020-09-30T00:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393821#M3369</link>
      <description>&lt;P&gt;okay try out : maxSockets and maxThreads and lets see&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 08:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393821#M3369</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-29T08:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393822#M3370</link>
      <description>&lt;P&gt;@DavidHourani &lt;BR /&gt;
Well for doing this and restarting services again, i have to take maintenance window from business.&lt;BR /&gt;
Ideally that should not happen right? Setting to -1 will impact server's performance also.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 08:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393822#M3370</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2019-05-29T08:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393823#M3371</link>
      <description>&lt;P&gt;yeah.... ideally you would need a reasonable limit to avoid breaking the server...are you using a single SH ?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 08:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393823#M3371</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-29T08:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393824#M3372</link>
      <description>&lt;P&gt;yaa, standalone Search Head&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:11:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393824#M3372</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2019-05-29T09:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393825#M3373</link>
      <description>&lt;P&gt;Hey @DavidHourani ,&lt;BR /&gt;
Modifying maxSockets and maxThread to -1, has not suffice my issue. I can still see the Broken Pipe messages.&lt;/P&gt;

&lt;P&gt;Also, while browsing for such issue , found a link where people are struggling since long from such errors, strangely none of the Splunk Employee tried to resolve it.&lt;BR /&gt;
FYR.. &lt;A href="https://answers.splunk.com/answers/105292/what-is-the-cause-of-these-socket-errors-reported-in-splunkd-log-since-upgrading-to-6-0.html"&gt;https://answers.splunk.com/answers/105292/what-is-the-cause-of-these-socket-errors-reported-in-splunkd-log-since-upgrading-to-6-0.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Seems this is the loop hole in splunk older version, as SPL-82389 known issue has not been closed and addressed since 6.2.9 version.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 08:25:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393825#M3373</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2019-06-03T08:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393826#M3374</link>
      <description>&lt;P&gt;Which Splunk version are you running ? Have you tried reaching out for Splunk support, you MIGHT be on a bug then...&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 15:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393826#M3374</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-03T15:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393827#M3375</link>
      <description>&lt;P&gt;We are currently on 6.6.3&lt;BR /&gt;
Not yet, we are in plan to upgrade in near time. &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 02:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393827#M3375</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2019-06-04T02:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393828#M3376</link>
      <description>&lt;P&gt;Why was the above answer marked as accepted when on June 03 2019 @sarvesh_11 states the issue persists? &lt;/P&gt;

&lt;P&gt;We're seeing this too.  Was this issue resolved?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 02:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393828#M3376</guid>
      <dc:creator>dijikul</dc:creator>
      <dc:date>2020-03-06T02:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: HttpListener - Socket error from 127.0.0.1 while accessing : Broken Pipe</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393829#M3377</link>
      <description>&lt;P&gt;Hey @dijikul &lt;BR /&gt;
We have upgraded splunk enterprise version and were able to solve this issue.&lt;BR /&gt;
We upgraded it to 7.3&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 08:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/HttpListener-Socket-error-from-127-0-0-1-while-accessing-Broken/m-p/393829#M3377</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2020-03-06T08:38:29Z</dc:date>
    </item>
  </channel>
</rss>

