{"id":30459,"date":"2026-12-05T22:05:25","date_gmt":"2026-12-05T22:05:25","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=30459"},"modified":"2026-12-05T22:05:25","modified_gmt":"2026-12-05T22:05:25","slug":"splunk-tutorial-install-configure-splunk-server","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/splunk-tutorial-install-configure-splunk-server\/","title":{"rendered":"Splunk Tutorial: Install &#038; Configure Splunk Server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This page shows how to download, install and start Splunk Enterprise on Linux from the .tgz, .rpm or .deb package, and how to run it as a systemd service under a non-root user. Below the original command list you will find a corrected step-by-step procedure, first-login and firewall setup, a quick universal forwarder connection, and fixes for common installation problems.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">Download File URL - https:<span class=\"hljs-comment\">\/\/download.splunk.com\/products\/splunk\/releases\/9.0.1\/linux\/splunk-9.0.1-82c987350fde-Linux-x86_64.tgz<\/span>\r\n\r\nSplunk Linux Tar file - wget -O splunk<span class=\"hljs-number\">-9.0<\/span><span class=\"hljs-number\">.1<\/span><span class=\"hljs-number\">-82<\/span>c987350fde-Linux-x86_64.tgz <span class=\"hljs-string\">\"https:\/\/download.splunk.com\/products\/splunk\/releases\/9.0.1\/linux\/splunk-9.0.1-82c987350fde-Linux-x86_64.tgz\"<\/span>\r\n\r\nSplunk Linux rpm file - wget -O splunk<span class=\"hljs-number\">-9.0<\/span><span class=\"hljs-number\">.1<\/span><span class=\"hljs-number\">-82<\/span>c987350fde-linux<span class=\"hljs-number\">-2.6<\/span>-x86_64.rpm <span class=\"hljs-string\">\"https:\/\/download.splunk.com\/products\/splunk\/releases\/9.0.1\/linux\/splunk-9.0.1-82c987350fde-linux-2.6-x86_64.rpm\"<\/span>\r\n\r\nSplunk Linux Debian file - wget -O splunk<span class=\"hljs-number\">-9.0<\/span><span class=\"hljs-number\">.1<\/span><span class=\"hljs-number\">-82<\/span>c987350fde-linux<span class=\"hljs-number\">-2.6<\/span>-amd64.deb <span class=\"hljs-string\">\"https:\/\/download.splunk.com\/products\/splunk\/releases\/9.0.1\/linux\/splunk-9.0.1-82c987350fde-linux-2.6-amd64.deb\"<\/span>\r\n\r\nSplunk Linux Windows file - wget -O splunk<span class=\"hljs-number\">-9.0<\/span><span class=\"hljs-number\">.1<\/span><span class=\"hljs-number\">-82<\/span>c987350fde-x64-release.msi <span class=\"hljs-string\">\"https:\/\/download.splunk.com\/products\/splunk\/releases\/9.0.1\/windows\/splunk-9.0.1-82c987350fde-x64-release.msi\"<\/span>\r\n\r\n\r\nSplunk Universal Forwarder\r\n\r\nMSI file\r\n$ wget -O splunkforwarder<span class=\"hljs-number\">-9.0<\/span><span class=\"hljs-number\">.1<\/span><span class=\"hljs-number\">-82<\/span>c987350fde-x64-release.msi <span class=\"hljs-string\">\"https:\/\/download.splunk.com\/products\/universalforwarder\/releases\/9.0.1\/windows\/splunkforwarder-9.0.1-82c987350fde-x64-release.msi\"<\/span>\r\n\r\nLinux tar file\r\n$ wget -O splunkforwarder<span class=\"hljs-number\">-9.0<\/span><span class=\"hljs-number\">.1<\/span><span class=\"hljs-number\">-82<\/span>c987350fde-Linux-x86_64.tgz <span class=\"hljs-string\">\"https:\/\/download.splunk.com\/products\/universalforwarder\/releases\/9.0.1\/linux\/splunkforwarder-9.0.1-82c987350fde-Linux-x86_64.tgz\"<\/span>\r\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\">cd \/opt\/\nwget XXXXX\n\ntar xvzf splunk_package_name.tgz\ntar xvzf splunk_package_name.tgz -C \/opt\nchmod 744 splunk_package_name.rpm\nrpm -i splunk_package_name.rpm\n.\/splunk start --accept-license\n.\/splunk enable boot-start \n---\ncd <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Splunk<\/span> <span class=\"hljs-attr\">Enterprise<\/span> <span class=\"hljs-attr\">installation<\/span> <span class=\"hljs-attr\">directory<\/span>&gt;<\/span>\/bin\n.\/splunk start\n\n\ncd \/opt\/splunk\ndpkg -i splunk_package_name.deb\ndpkg --status splunk\ndpkg --list\n.\/splunk start --accept-license\n.\/splunk enable boot-start <\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What you are installing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The download links above cover two products. <strong>Splunk Enterprise<\/strong> is the full server: it indexes data, runs searches and serves the web interface. The <strong>Universal Forwarder<\/strong> is a lightweight agent that runs on your source machines and ships logs to Splunk Enterprise. Install Enterprise first, then add forwarders.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Item<\/th><th>Splunk Enterprise<\/th><th>Universal Forwarder<\/th><\/tr><\/thead><tbody><tr><td>Default install path (Linux)<\/td><td><code>\/opt\/splunk<\/code><\/td><td><code>\/opt\/splunkforwarder<\/code><\/td><\/tr><tr><td>Web interface<\/td><td>Port 8000 (HTTP by default)<\/td><td>None<\/td><\/tr><tr><td>Management\/REST port<\/td><td>8089<\/td><td>8089<\/td><\/tr><tr><td>Receives forwarded data<\/td><td>Port 9997, once you enable it<\/td><td>Sends to 9997<\/td><\/tr><tr><td>Package formats<\/td><td>tgz, rpm, deb, msi<\/td><td>tgz, rpm, deb, msi<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Version 9.0.1 in the example above is an old release. Sign in to splunk.com with a free account, open the Splunk Enterprise download page, and copy the current <code>wget<\/code> link it gives you. Package file names have changed between releases, so the commands below use <code>&lt;version&gt;<\/code> and <code>&lt;build&gt;<\/code> placeholders.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A 64-bit Linux host that the current Splunk release supports, with sudo access.<\/li>\n\n\n<li>Enough free disk space on the partition holding <code>\/opt\/splunk<\/code>. By default, Splunk stops indexing when free space falls below 5000 MB (<code>minFreeSpace<\/code> in <code>server.conf<\/code>).<\/li>\n\n\n<li>Inbound TCP 8000 (web UI) open to your workstation. Open 9997 too if forwarders will send data.<\/li>\n\n\n<li>A dedicated non-root <code>splunk<\/code> user. Running Splunk as root works, but it is a security risk and Splunk advises against it.<\/li>\n\n\n<li>Raised file and process limits (Splunk recommends at least 64000 open files and 16000 user processes). Transparent huge pages should be disabled.<\/li>\n<\/ul>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Create the service account if it does not exist<\/span>\nid splunk || sudo useradd -r -m -s \/bin\/bash splunk\n\n<span class=\"hljs-comment\"># Check and disable transparent huge pages (lasts until the next reboot)<\/span>\ncat \/sys\/kernel\/mm\/transparent_hugepage\/enabled\n<span class=\"hljs-keyword\">echo<\/span> never | sudo tee \/sys\/kernel\/mm\/transparent_hugepage\/enabled\n<span class=\"hljs-keyword\">echo<\/span> never | sudo tee \/sys\/kernel\/mm\/transparent_hugepage\/defrag<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The THP change above does not survive a reboot. To make it permanent, use a kernel boot parameter (<code>transparent_hugepage=never<\/code>) or a small systemd unit that runs before Splunkd.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install from the tgz archive (any distribution)<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download the archive to a temporary directory, not into <code>\/opt<\/code>.<\/li>\n\n\n<li>Extract it into <code>\/opt<\/code>. This creates <code>\/opt\/splunk<\/code>.<\/li>\n\n\n<li>Give ownership to the <code>splunk<\/code> user.<\/li>\n\n\n<li>Start Splunk as that user and accept the license. On first start, Splunk asks you to create the admin username and password.<\/li>\n<\/ol>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\">cd \/tmp\nwget -O splunk-<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">version<\/span>&gt;<\/span>-<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">build<\/span>&gt;<\/span>-linux.tgz \"<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">link<\/span> <span class=\"hljs-attr\">copied<\/span> <span class=\"hljs-attr\">from<\/span> <span class=\"hljs-attr\">splunk.com<\/span>&gt;<\/span>\"\n\nsudo tar -xzf splunk-<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">version<\/span>&gt;<\/span>-<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">build<\/span>&gt;<\/span>-linux.tgz -C \/opt\nsudo chown -R splunk:splunk \/opt\/splunk\n\nsudo -u splunk \/opt\/splunk\/bin\/splunk start --accept-license<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">For automated builds (scripts, Ansible, cloud-init), skip the prompts and set the admin password in the same command:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">sudo -u splunk \/opt\/splunk\/bin\/splunk start --accept-license --answer-yes --no-prompt --seed-passwd <span class=\"hljs-string\">'Use-A-Strong-Passw0rd'<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> <code>--seed-passwd<\/code> leaves the password in your shell history. In automation, the safer option is to create <code>\/opt\/splunk\/etc\/system\/local\/user-seed.conf<\/code> before the first start. It holds a <code>[user_info]<\/code> stanza with <code>USERNAME<\/code> and <code>PASSWORD<\/code> (or <code>HASHED_PASSWORD<\/code>), and Splunk removes the file after it reads it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install from the rpm or deb package<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Both packages install to <code>\/opt\/splunk<\/code>. Run the package command from the directory where you saved the file. <code>\/opt\/splunk<\/code> does not exist until the install finishes. The package installs files but does not start Splunk.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\"># RHEL, Rocky, Alma, Amazon Linux, SUSE\ncd \/tmp\nsudo rpm -i splunk-<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">version<\/span>&gt;<\/span>-<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">build<\/span>&gt;<\/span>.x86_64.rpm      # or: sudo dnf install .\/splunk-*.rpm\nrpm -qi splunk\n\n# Debian, Ubuntu\ncd \/tmp\nsudo dpkg -i splunk-<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">version<\/span>&gt;<\/span>-<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">build<\/span>&gt;<\/span>-linux-amd64.deb\ndpkg --status splunk\n\n# Both: fix ownership and start\nsudo chown -R splunk:splunk \/opt\/splunk\nsudo -u splunk \/opt\/splunk\/bin\/splunk start --accept-license<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Run <code>rpm -qi splunk<\/code> or <code>dpkg --status splunk<\/code> to confirm the package and version are installed. <code>dpkg --list<\/code> with no argument lists every package on the system, so use <code>dpkg -l splunk<\/code> if you only want the Splunk entry.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Start Splunk at boot with systemd<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>enable boot-start<\/code> must run as root. Without <code>-user<\/code>, the service runs as root. Add <code>-systemd-managed 1<\/code> so Splunk creates a native systemd unit (named <code>Splunkd.service<\/code> by default) instead of an init.d script. Stop Splunk before you enable it.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">sudo -u splunk \/opt\/splunk\/bin\/splunk stop\nsudo \/opt\/splunk\/bin\/splunk enable boot-start -user splunk -systemd-managed <span class=\"hljs-number\">1<\/span>\n\nsudo systemctl start Splunkd\nsudo systemctl status Splunkd\nsystemctl cat Splunkd        <span class=\"hljs-comment\"># review the generated unit, including its resource limits<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">After this, manage the service with <code>systemctl start|stop|restart Splunkd<\/code>. That keeps systemd&#039;s view of the process accurate.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify the installation and log in<\/h2>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">\/opt\/splunk\/bin\/splunk version\nsudo -u splunk \/opt\/splunk\/bin\/splunk status\nsudo ss -tlnp | grep -E <span class=\"hljs-string\">':8000|:8089'<\/span>\n\n<span class=\"hljs-comment\"># Open the web port (firewalld)<\/span>\nsudo firewall-cmd --permanent --add-port=<span class=\"hljs-number\">8000<\/span>\/tcp --add-port=<span class=\"hljs-number\">9997<\/span>\/tcp\nsudo firewall-cmd --reload\n\n<span class=\"hljs-comment\"># Or on Ubuntu with ufw<\/span>\nsudo ufw allow <span class=\"hljs-number\">8000<\/span>\/tcp\nsudo ufw allow <span class=\"hljs-number\">9997<\/span>\/tcp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><code>splunk status<\/code> should report that splunkd is running and list its process IDs. Open <code>http:\/\/&lt;server-ip&gt;:8000<\/code> and sign in with the admin account you created. On a cloud VM, open port 8000 in the security group or network firewall too. A new install runs a 60-day Enterprise trial. After that you can switch to the Free license, which has a 500 MB\/day indexing limit and no user authentication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The web UI uses plain HTTP by default. Before real use, enable HTTPS under <strong>Settings &gt; Server settings &gt; General settings<\/strong>, or set <code>enableSplunkWebSSL = true<\/code> in <code>web.conf<\/code>, and limit port 8000 to trusted networks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Connect a universal forwarder<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To send logs from another Linux host, enable a receiving port on the Splunk server. Then install the forwarder from the tgz link above and point it at the server.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># On the Splunk Enterprise server<\/span>\nsudo -u splunk \/opt\/splunk\/bin\/splunk enable listen <span class=\"hljs-number\">9997<\/span> -auth admin:<span class=\"hljs-string\">'&lt;password&gt;'<\/span>\n\n<span class=\"hljs-comment\"># On the source host<\/span>\nsudo tar -xzf splunkforwarder-&lt;version&gt;-&lt;build&gt;-linux.tgz -C \/opt\nsudo \/opt\/splunkforwarder\/bin\/splunk start --accept-license\nsudo \/opt\/splunkforwarder\/bin\/splunk add forward-server &lt;splunk-server-ip&gt;:<span class=\"hljs-number\">9997<\/span>\nsudo \/opt\/splunkforwarder\/bin\/splunk add monitor \/<span class=\"hljs-keyword\">var<\/span>\/log\/messages -index main\nsudo \/opt\/splunkforwarder\/bin\/splunk <span class=\"hljs-keyword\">list<\/span> forward-server<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><code>list forward-server<\/code> should show the server under <strong>Active forwards<\/strong>. On the indexer, run <code>index=main host=&lt;source-host&gt;<\/code> in Search to confirm events are arriving. Use <code>\/var\/log\/syslog<\/code> instead of <code>\/var\/log\/messages<\/code> on Debian and Ubuntu. For more CLI and search commands, see the <a href=\"https:\/\/www.devopsschool.com\/blog\/splunk-tutorials-splunk-commands-reference\/\">Splunk commands reference<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors and fixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Likely cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td><code>.\/splunk: No such file or directory<\/code><\/td><td>Running the command from the wrong directory<\/td><td>Use the full path <code>\/opt\/splunk\/bin\/splunk<\/code>, or <code>cd \/opt\/splunk\/bin<\/code> first<\/td><\/tr><tr><td>Permission denied on files under <code>\/opt\/splunk\/var<\/code><\/td><td>Splunk was started once as root, then as <code>splunk<\/code><\/td><td>Stop Splunk, run <code>sudo chown -R splunk:splunk \/opt\/splunk<\/code>, then start it again<\/td><\/tr><tr><td>Prompt saying port 8000 is in use<\/td><td>Another service is bound to the port<\/td><td>Accept the suggested port, or run <code>splunk set web-port 8001<\/code> and restart<\/td><\/tr><tr><td>Browser times out on port 8000<\/td><td>Host firewall or cloud security group<\/td><td>Open TCP 8000 and check with <code>ss -tlnp<\/code><\/td><\/tr><tr><td>Indexing paused, low disk space warning<\/td><td>Free space is below <code>minFreeSpace<\/code><\/td><td>Free up disk or move indexes to a larger volume<\/td><\/tr><tr><td>Forgot the admin password<\/td><td>No recovery option in the UI<\/td><td>Stop Splunk, rename <code>etc\/passwd<\/code> to <code>etc\/passwd.bak<\/code>, create <code>etc\/system\/local\/user-seed.conf<\/code> with new credentials, then start<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When something fails to start, look in <code>\/opt\/splunk\/var\/log\/splunk\/splunkd.log<\/code> first. Use <code>tail -n 100<\/code> on it to see the most recent errors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What was corrected in the commands above<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <code>.msi<\/code> link is labelled &quot;Splunk Linux Windows file&quot;. It is the Windows installer and only runs on Windows.<\/li>\n\n\n<li><code>chmod 744<\/code> on the <code>.rpm<\/code> file is unnecessary. <code>rpm<\/code> reads the package and does not need it to be executable.<\/li>\n\n\n<li><code>.\/splunk start<\/code> only works from <code>\/opt\/splunk\/bin<\/code>. The original runs it straight after <code>tar<\/code> or <code>rpm<\/code> without changing into that directory.<\/li>\n\n\n<li><code>cd \/opt\/splunk<\/code> before <code>dpkg -i<\/code> fails, because the directory only exists after the package is installed. Run <code>dpkg -i<\/code> from the download directory.<\/li>\n\n\n<li>Running <code>tar<\/code> twice, with and without <code>-C \/opt<\/code>, is redundant. Extract once with <code>-C \/opt<\/code>.<\/li>\n\n\n<li><code>enable boot-start<\/code> without <code>-user splunk<\/code> makes Splunk run as root. The corrected command adds <code>-user splunk -systemd-managed 1<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Where does Splunk Enterprise install on Linux?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The rpm and deb packages install to <code>\/opt\/splunk<\/code>. The tgz archive extracts wherever you point <code>tar -C<\/code>, and <code>\/opt<\/code> is the usual choice. The Universal Forwarder uses <code>\/opt\/splunkforwarder<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is the default Splunk web URL and port?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The web interface is at <code>http:\/\/&lt;server-ip&gt;:8000<\/code>. The management REST API uses port 8089, and forwarders usually send data to port 9997 once you enable receiving on the indexer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Should Splunk run as root?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. Create a dedicated <code>splunk<\/code> user, give it ownership of <code>\/opt\/splunk<\/code>, and enable boot-start with <code>-user splunk<\/code> so the service runs with limited privileges.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I start Splunk automatically after a reboot?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Stop Splunk, then run <code>sudo \/opt\/splunk\/bin\/splunk enable boot-start -user splunk -systemd-managed 1<\/code>. Splunk then runs as the <code>Splunkd<\/code> systemd service, which you control with <code>systemctl<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What happens when the Splunk trial ends?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Enterprise trial lasts 60 days. After that you can buy a license or switch to Splunk Free, which allows up to 500 MB of indexed data per day but has no user authentication and lacks some Enterprise features such as alerting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/splunk-tutorials-splunk-commands-reference\/\">Splunk Tutorials: Splunk Commands Reference<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/what-is-splunk-and-how-it-works-an-overview-and-its-use-cases\/\">What is Splunk and How it works? An Overview and Its Use Cases<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/top-50-splunk-interview-questions-and-answers\/\">Top 50 Splunk interview questions and answers<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/monitoring-observability\/splunk\/\">More Splunk tutorials<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This page shows how to download, install and start Splunk Enterprise on Linux from the .tgz, .rpm or .deb package, and how to run it as a&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5207],"tags":[4672],"class_list":["post-30459","post","type-post","status-publish","format-standard","hentry","category-splunk","tag-log-management"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=30459"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30459\/revisions"}],"predecessor-version":[{"id":80688,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30459\/revisions\/80688"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=30459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=30459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=30459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}