<?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 How to start the Splunk service on Red Hat Linux? in Installation</title>
    <link>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/10347#M69</link>
    <description>&lt;P&gt;I installed the Splunk Linux version today (rpm version) but I don't know how to start Splunk service. I tried to input command service Splunk start and /etc/init.d/splunk start but these services did not have Linux. How can I start Splunk service?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 20:13:14 GMT</pubDate>
    <dc:creator>Alan_Bradley</dc:creator>
    <dc:date>2020-11-04T20:13:14Z</dc:date>
    <item>
      <title>How to start the Splunk service on Red Hat Linux?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/10347#M69</link>
      <description>&lt;P&gt;I installed the Splunk Linux version today (rpm version) but I don't know how to start Splunk service. I tried to input command service Splunk start and /etc/init.d/splunk start but these services did not have Linux. How can I start Splunk service?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 20:13:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/10347#M69</guid>
      <dc:creator>Alan_Bradley</dc:creator>
      <dc:date>2020-11-04T20:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the splunk service on Redhat</title>
      <link>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/10348#M70</link>
      <description>&lt;P&gt;You will want to run the command:
&lt;CODE&gt;$SPLUNK_HOME/bin/splunk start&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Reference: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Installation/StartSplunkforthefirsttime" rel="nofollow"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Installation/StartSplunkforthefirsttime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You may also want to check these instructions on how to start SPlunk at boot time: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Admin/ConfigureSplunktostartatboottime" rel="nofollow"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Admin/ConfigureSplunktostartatboottime&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2010 02:17:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/10348#M70</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-03-20T02:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the splunk service on Redhat</title>
      <link>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/10349#M71</link>
      <description>&lt;P&gt;first go to bin folder in Splunk&lt;/P&gt;

&lt;P&gt;bin&amp;gt; ./splunk start&lt;/P&gt;

&lt;P&gt;for stop the splunk&lt;/P&gt;

&lt;P&gt;bin&amp;gt; ./splunk stop&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2015 12:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/10349#M71</guid>
      <dc:creator>srisahitya_v</dc:creator>
      <dc:date>2015-05-10T12:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the splunk service on Redhat</title>
      <link>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/10350#M72</link>
      <description>&lt;P&gt;Better answer:&lt;BR /&gt;
        $SPLUNK_HOME/bin/splunk enable boot-start&lt;BR /&gt;
This creates an init.d service file.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 14:45:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/10350#M72</guid>
      <dc:creator>paulmarticsi</dc:creator>
      <dc:date>2017-09-15T14:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to start the splunk service on Redhat</title>
      <link>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/10351#M73</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk enable boot-start
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Installs a service file in /etc/init.d that supports start|stop|restart|status &lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 14:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/10351#M73</guid>
      <dc:creator>paulmarticsi</dc:creator>
      <dc:date>2017-09-15T14:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to start the Splunk service on Red Hat Linux?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/529284#M6906</link>
      <description>&lt;P&gt;If it is RHEL 7.x + I would recommend using systemd to manage the splunk service:&lt;/P&gt;&lt;PRE&gt;$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;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.0/Admin/RunSplunkassystemdservice" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.0/Admin/RunSplunkassystemdservice&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This will create a file in /etc/systemd/system/Splunkd.service and I replace the contents of that with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Unit]
After=network.target

[Service]
Type=simple
Restart=always
ExecStart= /opt/splunk/bin/splunk _internal_launch_under_systemd
ExecStop = /opt/splunk/bin/splunk stop
ExecReload = /opt/splunk/bin/splunk restart
LimitCORE = 0
LimitFSIZE = infinity
LimitDATA = infinity
LimitNPROC = 20480
LimitNOFILE = 65536
TimeoutSec = 300
SuccessExitStatus=51 52
RestartPreventExitStatus=51
RestartForceExitStatus=52
Delegate=true
MemoryLimit=100G
CPUShares=1024
PermissionsStartOnly=true
ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/cpu/system.slice/%n"
ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/memory/system.slice/%n"

[Install]
WantedBy=multi-user.target&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This file will handle required ulimit settings and deal with permissions per Splunk's env specs. Also note that I am running Splunk as the linux user splunk which you can change should you want to. If you choose to do this make sure you refresh systemd daemon: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;systemctl daemon-reload &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I prefer running Splunk using systemd instead of the legacy init.d as there is more functionality and I would assume it is going to be more supported moving forward.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 11:33:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-start-the-Splunk-service-on-Red-Hat-Linux/m-p/529284#M6906</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2020-11-13T11:33:51Z</dc:date>
    </item>
  </channel>
</rss>

