<?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 why ulimit values are not persistent even after trying all the splunk recommended options in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514031#M144278</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have tried updating ulimits values but it is not persistant in all the instances. Production environment which I am working on is having cluster/licensce master, search head cluster, indexer cluster and few heavy forwarder instances.&lt;/P&gt;&lt;P&gt;- As per splunk recommendation tried updating ulimits in&amp;nbsp;&lt;SPAN&gt;/etc/security/limits.conf file and done the service restart. Post that ulimits got persistently&amp;nbsp;updated only in indexer instances and in rest of the instances there was no changes in ulimits value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Tried hard coding ulimits values in etc/init.d/splunk file inside splunk start () fucntion as well when it boot starts and rebooted the instances. Post that ulimits persistently&amp;nbsp;updated in only indexer and search head instances&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In heavy forwarder and licence master instances even if I try to increasing ulimits after couple of hpours it is getting reduced and can you please suggest ehat can be done to set the ulimits persistantly&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;</description>
    <pubDate>Fri, 14 Aug 2020 07:01:35 GMT</pubDate>
    <dc:creator>hegderm</dc:creator>
    <dc:date>2020-08-14T07:01:35Z</dc:date>
    <item>
      <title>why ulimit values are not persistent even after trying all the splunk recommended options</title>
      <link>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514031#M144278</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have tried updating ulimits values but it is not persistant in all the instances. Production environment which I am working on is having cluster/licensce master, search head cluster, indexer cluster and few heavy forwarder instances.&lt;/P&gt;&lt;P&gt;- As per splunk recommendation tried updating ulimits in&amp;nbsp;&lt;SPAN&gt;/etc/security/limits.conf file and done the service restart. Post that ulimits got persistently&amp;nbsp;updated only in indexer instances and in rest of the instances there was no changes in ulimits value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Tried hard coding ulimits values in etc/init.d/splunk file inside splunk start () fucntion as well when it boot starts and rebooted the instances. Post that ulimits persistently&amp;nbsp;updated in only indexer and search head instances&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In heavy forwarder and licence master instances even if I try to increasing ulimits after couple of hpours it is getting reduced and can you please suggest ehat can be done to set the ulimits persistantly&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 07:01:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514031#M144278</guid>
      <dc:creator>hegderm</dc:creator>
      <dc:date>2020-08-14T07:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: why ulimit values are not persistent even after trying all the splunk recommended options</title>
      <link>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514094#M144299</link>
      <description>&lt;P&gt;Have you tried setting ulimits when starting Splunk?&amp;nbsp; I put this code in my init.d/splunk file.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;change_ulimit() {
  ulimit -Hn 65535
  ulimit -Sn 65535
  ulimit -Hu 20480
  ulimit -Su 20480
  ulimit -Hf unlimited
  ulimit -Sf unlimited
}&lt;/LI-CODE&gt;&lt;P&gt;Then invoke the function when starting Splunk&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;case "$1" in
start)
   change_ulimit
   splunk_start
   ;;
stop)
   splunk_stop
   ;;
restart)
   change_ulimit
   splunk_restart
   ;;
status)
	splunk_status
	;;
esac&lt;/LI-CODE&gt;&lt;P&gt;If you use systemd, try these settings in the Splunk service file:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LimitNOFILE = 65535
LimitNPROC = 20480
LimitFSIZE = infinity&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Aug 2020 13:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514094#M144299</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-14T13:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: why ulimit values are not persistent even after trying all the splunk recommended options</title>
      <link>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514177#M144312</link>
      <description>&lt;P&gt;And if your environment is using selinux then remember run restoreconn after changes!&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;&lt;P&gt;updated:&lt;/P&gt;&lt;P&gt;Create file&amp;nbsp;&lt;SPAN&gt;/etc/security/limits.d/21-splunk.conf with content&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;splunk       soft    nofile     65536
splunk       hard    nofile     65536&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add also other user specific limits to this file if/when needed.&lt;/P&gt;&lt;P&gt;Then run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;restorecon -FvvR /etc/security/limits.d&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;After that new login for user splunk and then it should works.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 11:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514177#M144312</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-17T11:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: why ulimit values are not persistent even after trying all the splunk recommended options</title>
      <link>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514184#M144314</link>
      <description>&lt;P&gt;And it requires reboot of the server also.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 19:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514184#M144314</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-14T19:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: why ulimit values are not persistent even after trying all the splunk recommended options</title>
      <link>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514185#M144315</link>
      <description>&lt;P&gt;Actual not, jus logout and login for that user which limit you have changed.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 19:05:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514185#M144315</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-14T19:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: why ulimit values are not persistent even after trying all the splunk recommended options</title>
      <link>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514186#M144316</link>
      <description>&lt;P&gt;/etc/init.d/splunk is executed at server booting. So I don’t think it works the way you think.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 19:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514186#M144316</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-14T19:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: why ulimit values are not persistent even after trying all the splunk recommended options</title>
      <link>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514187#M144317</link>
      <description>&lt;P&gt;You could run it by hand any time you want. No need to wait a reboot.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 19:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/why-ulimit-values-are-not-persistent-even-after-trying-all-the/m-p/514187#M144317</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-14T19:09:25Z</dc:date>
    </item>
  </channel>
</rss>

