<?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: Splunk Systemd Service in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/544272#M4322</link>
    <description>&lt;P&gt;I came across this and tested with 8.1.2 successfully. &amp;nbsp;Meanwhile, as this is dated, Splunk now has official systemd support; see&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/Admin/RunSplunkassystemdservice" target="_blank" rel="noopener"&gt;Run Splunk Enterprise as a systemd service&lt;/A&gt;. &amp;nbsp;Specifically, in&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/Admin/RunSplunkassystemdservice#Additional_options_for_enable_boot-start" target="_blank" rel="noopener"&gt;Additional options for enable boot-start&lt;/A&gt;, a highlight panel states&lt;/P&gt;&lt;P class="well caution lia-indent-padding-left-30px"&gt;Do not use the following properties. These properties can cause splunkd to fail on restart.&lt;BR /&gt;RemainAfterExit=yes&lt;BR /&gt;ExecStop&lt;/P&gt;&lt;P&gt;I didn't experience problem with &amp;nbsp;restart with ExecStop but it's probably prudent to just use the official guide. &amp;nbsp;Procedure is simple, just run&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[sudo] $SPLUNK_HOME/bin/splunk enable boot-start -systemd-managed 1 -user &amp;lt;username&amp;gt; -group &amp;lt;groupname&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 01:00:18 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2021-03-18T01:00:18Z</dc:date>
    <item>
      <title>Splunk Systemd Service</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314683#M4315</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Has anyone a working systemd script for Redhat/SUSE?&lt;/P&gt;

&lt;P&gt;If I using the script from &lt;A href="https://answers.splunk.com/answers/59662/is-there-a-systemd-unit-file-for-splunk.html"&gt;https://answers.splunk.com/answers/59662/is-there-a-systemd-unit-file-for-splunk.html&lt;/A&gt;&lt;BR /&gt;
I get some error at the HTTP-Listener&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10-17-2017 09:07:36.017 +0200 ERROR DispatchProcess - Failed to start the search process. 10-17-2017 09:07:36.032 +0200 ERROR SearchProcessRunner - Error reading from preforked process=0/25: Connection reset by peer 10-17-2017 09:07:36.123 +0200 WARN  Thread - HTTPDispatch: about to throw a ThreadException: pthread_create: Resource temporarily unavailable; 75 threads active 10-17-2017 09:07:36.123
+0200 ERROR HttpListener - Error spawning thread: HTTPDispatch: about to throw a ThreadException: pthread_create: Resource temporarily unavailable; 75 threads active 10-17-2017 09:07:45.273 +0200 ERROR SearchProcessRunner - preforked search=0/32 on process=0/31 caught exception.  completed_searches=0, process_started=1508224065.223881, search_started=1508224065.228171, search_ended=1508224065.273768, total_usage_time=0.046 10-17-2017 09:07:45.273 +0200 ERROR SearchProcessRunner - preforked process=0/31 died on exception: Main Thread: about to throw a ThreadException: pthread_create: Resource temporarily unavailable; 3 threads active 10-17-2017 09:07:50.688
+0200 WARN  ProcessTracker - executable=splunk-optimize failed to start reason='': Resource temporarily unavailable 10-17-2017 09:07:50.692
+0200 WARN  ProcessTracker - executable=splunk-optimize failed to start reason='': Resource temporarily unavailable 10-17-2017 09:07:50.693
+0200 WARN  ProcessTracker - executable=splunk-optimize failed to start reason='': Resource temporarily unavailable 10-17-2017 09:07:50.693
+0200 WARN  ProcessTracker - executable=splunk-optimize failed to start reason='': Resource temporarily unavailable
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Oct 2017 07:15:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314683#M4315</guid>
      <dc:creator>chrisitanmoleck</dc:creator>
      <dc:date>2017-10-17T07:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Systemd Service</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314684#M4316</link>
      <description>&lt;P&gt;Does any one has a idea or a usable systemd script for SLES?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 07:46:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314684#M4316</guid>
      <dc:creator>chrisitanmoleck</dc:creator>
      <dc:date>2018-01-15T07:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Systemd Service</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314685#M4317</link>
      <description>&lt;P&gt;I use this systemd script on my SLES 12 SP3 installation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Unit]
Description=Splunk Enterprise
After=network.target
Wants=network.target

[Service]
Type=forking
RemainAfterExit=False
User=&amp;lt;Enter_your_user_here&amp;gt;
Group=&amp;lt;Enter_your_group_here&amp;gt;
LimitNOFILE=65536
ExecStart=/opt/splunk/bin/splunk start --accept-license --answer-yes --no-prompt
ExecStop=/opt/splunk/bin/splunk stop
ExecReload=/opt/splunk/bin/splunk restart
PIDFile=/opt/splunk/var/run/splunk/splunkd.pid
TimeoutSec=600
TasksMax=infinity

[Install]
WantedBy=multi-user.target
Alias=splunk.service
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hopes this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 18:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314685#M4317</guid>
      <dc:creator>tonymata</dc:creator>
      <dc:date>2019-02-06T18:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Systemd Service</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314686#M4318</link>
      <description>&lt;P&gt;Splunks latest version supports systemd file generation please look at &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/RunSplunkassystemdservice"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/RunSplunkassystemdservice&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2019 01:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314686#M4318</guid>
      <dc:creator>dimrirahul</dc:creator>
      <dc:date>2019-02-09T01:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Systemd Service</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314687#M4319</link>
      <description>&lt;P&gt;Thank You tonymata.&lt;BR /&gt;
Your script works very well.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 10:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314687#M4319</guid>
      <dc:creator>chrisitanmoleck</dc:creator>
      <dc:date>2019-02-22T10:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Systemd Service</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314688#M4320</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Summary of the issue:&lt;/STRONG&gt;&lt;BR /&gt;
Splunk 6.0.0 - Splunk 7.2.1 defaults to using &lt;STRONG&gt;init.d&lt;/STRONG&gt; when enabling boot start&lt;BR /&gt;
Splunk 7.2.2 - Splunk 7.2.9 defaults to using &lt;STRONG&gt;systemd&lt;/STRONG&gt; when enabling boot start&lt;BR /&gt;
Splunk 7.3.0 - Splunk 8.x defaults to using &lt;STRONG&gt;init.d&lt;/STRONG&gt; when enabling boot start&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;systemd&lt;/STRONG&gt; defaults to prompting for root credentials upon stop/start/restart of Splunk&lt;/P&gt;

&lt;P&gt;Here is a simple fix if you have encountered this issue and prefer to use the traditional &lt;STRONG&gt;init.d&lt;/STRONG&gt; scripts vs &lt;STRONG&gt;systemd&lt;/STRONG&gt;. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Splunk Enterprise/Heavy Forwarder example&lt;/STRONG&gt; (note: replace the splunk user below with the account you run splunk as):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sudo /opt/splunk/bin/splunk disable boot-start
sudo /opt/splunk/bin/splunk enable boot-start -user splunk -systemd-managed 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Splunk Universal Forwarder example&lt;/STRONG&gt; (note: replace the splunk user below with the account you run splunk as):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sudo /opt/splunkforwarder/bin/splunk disable boot-start
sudo /opt/splunkforwarder/bin/splunk enable boot-start -user splunk -systemd-managed 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Dec 2019 18:51:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/314688#M4320</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2019-12-31T18:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Systemd Service</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/528987#M4321</link>
      <description>&lt;P&gt;Thanks, the crucial part for me was&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TimeoutSec=600
TasksMax=infinity&lt;/PRE&gt;&lt;P&gt;For some reason it was not needed for release 7.2.5, but needed for 8.1&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 15:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/528987#M4321</guid>
      <dc:creator>graether</dc:creator>
      <dc:date>2020-11-11T15:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Systemd Service</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/544272#M4322</link>
      <description>&lt;P&gt;I came across this and tested with 8.1.2 successfully. &amp;nbsp;Meanwhile, as this is dated, Splunk now has official systemd support; see&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/Admin/RunSplunkassystemdservice" target="_blank" rel="noopener"&gt;Run Splunk Enterprise as a systemd service&lt;/A&gt;. &amp;nbsp;Specifically, in&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/Admin/RunSplunkassystemdservice#Additional_options_for_enable_boot-start" target="_blank" rel="noopener"&gt;Additional options for enable boot-start&lt;/A&gt;, a highlight panel states&lt;/P&gt;&lt;P class="well caution lia-indent-padding-left-30px"&gt;Do not use the following properties. These properties can cause splunkd to fail on restart.&lt;BR /&gt;RemainAfterExit=yes&lt;BR /&gt;ExecStop&lt;/P&gt;&lt;P&gt;I didn't experience problem with &amp;nbsp;restart with ExecStop but it's probably prudent to just use the official guide. &amp;nbsp;Procedure is simple, just run&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[sudo] $SPLUNK_HOME/bin/splunk enable boot-start -systemd-managed 1 -user &amp;lt;username&amp;gt; -group &amp;lt;groupname&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 01:00:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Systemd-Service/m-p/544272#M4322</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2021-03-18T01:00:18Z</dc:date>
    </item>
  </channel>
</rss>

