{"id":30030,"date":"2026-12-05T22:05:13","date_gmt":"2026-12-05T22:05:13","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=30030"},"modified":"2026-12-05T22:05:13","modified_gmt":"2026-12-05T22:05:13","slug":"splunk-tutorials-download-splunk-universal-forwarder","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/splunk-tutorials-download-splunk-universal-forwarder\/","title":{"rendered":"Splunk Tutorials: Download Splunk &#038; Universal Forwarder"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This page has direct <code>wget<\/code> commands that download Splunk Enterprise (the indexer and search head) and the Splunk Universal Forwarder as Windows MSI, Linux DEB, RPM and TGZ packages. Below the commands you&#039;ll find how to swap in a current version, check the downloads, install both products on Linux and Windows, and connect a forwarder to an indexer so data starts flowing.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/3247238bfdf8a4cbaf6039a1a38ba516.js\"><\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What the commands above download<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Splunk ships two separate products. <strong>Splunk Enterprise<\/strong> is the full server. It indexes and stores data, runs searches and serves the web UI. The <strong>Universal Forwarder (UF)<\/strong> is a lightweight agent with no UI and no search. It reads logs on remote machines and sends them to Splunk Enterprise. A typical lab has one Enterprise instance and one or more forwarders.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Package<\/th><th>Use it on<\/th><th>Default install path<\/th><\/tr><\/thead><tbody><tr><td><code>.deb<\/code><\/td><td>Debian, Ubuntu<\/td><td><code>\/opt\/splunk<\/code> or <code>\/opt\/splunkforwarder<\/code><\/td><\/tr><tr><td><code>.rpm<\/code><\/td><td>RHEL, Rocky, AlmaLinux, Amazon Linux, SUSE<\/td><td><code>\/opt\/splunk<\/code> or <code>\/opt\/splunkforwarder<\/code><\/td><\/tr><tr><td><code>.tgz<\/code><\/td><td>Any 64-bit Linux, or when you want a custom path<\/td><td>Wherever you extract it, usually <code>\/opt<\/code><\/td><\/tr><tr><td><code>x64-release.msi<\/code><\/td><td>64-bit Windows<\/td><td><code>C:\\Program Files\\Splunk<\/code> or <code>C:\\Program Files\\SplunkUniversalForwarder<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Each file name contains the version (<code>8.2.6<\/code>) and a build hash (<code>a6fe1ee8894b<\/code>). The URL only works when both match a real release, so you can&#039;t just change the version number on its own.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Updating the commands for a current release<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The example above uses Splunk 8.2.6. The 8.2 line is out of support, and it&#039;s too old for a new installation. Sign in to splunk.com, open the Splunk Enterprise or Universal Forwarder download page, pick your platform and choose <strong>Download via Command Line (wget)<\/strong>. That gives you the exact URL, with the correct build hash and file name. File naming has changed between major releases, so copy the command instead of building it by hand.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Fill these in from the wget command on the download page<\/span>\nVERSION=<span class=\"hljs-string\">\"&lt;version&gt;\"<\/span>\nBUILD=<span class=\"hljs-string\">\"&lt;build-hash&gt;\"<\/span>\nFILE=<span class=\"hljs-string\">\"splunk-${VERSION}-${BUILD}-Linux-x86_64.tgz\"<\/span>   <span class=\"hljs-comment\"># use the exact name shown on the page<\/span>\n\nwget -O <span class=\"hljs-string\">\"$FILE\"<\/span> <span class=\"hljs-string\">\"https:\/\/download.splunk.com\/products\/splunk\/releases\/${VERSION}\/linux\/${FILE}\"<\/span>\n\n<span class=\"hljs-comment\"># Verify integrity: Splunk publishes a .sha512 file next to each package<\/span>\nwget -O <span class=\"hljs-string\">\"$FILE.sha512\"<\/span> <span class=\"hljs-string\">\"https:\/\/download.splunk.com\/products\/splunk\/releases\/${VERSION}\/linux\/${FILE}.sha512\"<\/span>\ncat <span class=\"hljs-string\">\"$FILE.sha512\"<\/span>\nsha512sum <span class=\"hljs-string\">\"$FILE\"<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><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\">The two hashes must match. If they don&#039;t, the download is corrupt or incomplete. Delete it and download it again. For the forwarder, replace <code>products\/splunk<\/code> with <code>products\/universalforwarder<\/code> and <code>splunk-<\/code> with <code>splunkforwarder-<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Always put the URL in quotes. If an old version&#039;s URL returns <code>403 Forbidden<\/code> or <code>404 Not Found<\/code>, that build has been removed or the name is wrong. Get a fresh link from the download page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Downloading on Windows<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Windows doesn&#039;t include GNU <code>wget<\/code>. In Windows PowerShell 5.1, <code>wget<\/code> is an alias for <code>Invoke-WebRequest<\/code>, which takes different parameters, so the commands above won&#039;t work as written. Use one of these instead:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># PowerShell<\/span>\n$url = <span class=\"hljs-string\">\"https:\/\/download.splunk.com\/products\/universalforwarder\/releases\/&lt;version&gt;\/windows\/&lt;file&gt;.msi\"<\/span>\nInvoke-WebRequest -Uri $url -OutFile <span class=\"hljs-string\">\"splunkforwarder.msi\"<\/span>\nGet-FileHash .\\splunkforwarder.msi -Algorithm SHA512\n\n<span class=\"hljs-comment\"># Or the curl.exe that ships with Windows 10 and later<\/span>\ncurl.exe -L -o splunkforwarder.msi <span class=\"hljs-string\">\"$url\"<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><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\">Current Splunk Enterprise releases are built for 64-bit systems only, so use the <code>x64-release.msi<\/code> package. Don&#039;t use the 32-bit Windows archive listed above.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing Splunk Enterprise on Linux<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Don&#039;t run Splunk as root. Create a dedicated user, install the package, give that user ownership of the install, then start Splunk as that user.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a service account: <code>sudo useradd -m -r splunk<\/code><\/li>\n\n\n<li>Install the package. DEB: <code>sudo dpkg -i splunk-*.deb<\/code>. RPM: <code>sudo dnf install .\/splunk-*.rpm<\/code> (or <code>sudo rpm -i<\/code>). TGZ: <code>sudo tar -xzf splunk-*.tgz -C \/opt<\/code><\/li>\n\n\n<li>Set ownership: <code>sudo chown -R splunk:splunk \/opt\/splunk<\/code><\/li>\n\n\n<li>Start it and accept the license: <code>sudo -u splunk \/opt\/splunk\/bin\/splunk start --accept-license<\/code>. On first start you&#039;ll be asked to create the admin username and password.<\/li>\n\n\n<li>Enable start at boot: <code>sudo \/opt\/splunk\/bin\/splunk enable boot-start -user splunk<\/code>. Add <code>-systemd-managed 1<\/code> to create a systemd unit.<\/li>\n\n\n<li>Open <code>http:\/\/&lt;server-ip&gt;:8000<\/code> and sign in with the admin account.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Before any forwarder can send data, the indexer has to listen for it. Port 9997 is the usual choice:<\/p>\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\">sudo -u splunk \/opt\/splunk\/bin\/splunk enable listen <span class=\"hljs-number\">9997<\/span> -auth admin:<span class=\"hljs-string\">'YourPassword'<\/span>\nsudo -u splunk \/opt\/splunk\/bin\/splunk display listen -auth admin:<span class=\"hljs-string\">'YourPassword'<\/span>\n\n<span class=\"hljs-comment\"># Open the ports if a host firewall is running (firewalld example)<\/span>\nsudo firewall-cmd --permanent --add-port={<span class=\"hljs-number\">8000<\/span>,<span class=\"hljs-number\">9997<\/span>}\/tcp &amp;&amp; sudo firewall-cmd --reload<\/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> For unattended installs, skip the password prompt by creating <code>\/opt\/splunk\/etc\/system\/local\/user-seed.conf<\/code> before the first start. Put a <code>[user_info]<\/code> stanza in it with <code>USERNAME<\/code> and <code>PASSWORD<\/code>. Splunk hashes the password and deletes the file on first start.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing the Universal Forwarder and connecting it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Run these steps on each machine you want to collect logs from. The forwarder goes in <code>\/opt\/splunkforwarder<\/code> and uses the same CLI commands. Recent DEB and RPM forwarder packages may create their own service account. Check who owns the install with <code>ls -ld \/opt\/splunkforwarder<\/code> and run commands as that user.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">sudo dpkg -i splunkforwarder-*.deb          <span class=\"hljs-comment\"># or: sudo dnf install .\/splunkforwarder-*.rpm<\/span>\nsudo \/opt\/splunkforwarder\/bin\/splunk start --accept-license   <span class=\"hljs-comment\"># creates the forwarder's local admin<\/span>\n\n<span class=\"hljs-comment\"># Point the forwarder at the indexer<\/span>\nsudo \/opt\/splunkforwarder\/bin\/splunk add forward-server &lt;indexer-ip&gt;:<span class=\"hljs-number\">9997<\/span> -auth admin:<span class=\"hljs-string\">'FwdPassword'<\/span>\n\n<span class=\"hljs-comment\"># Choose what to send<\/span>\nsudo \/opt\/splunkforwarder\/bin\/splunk add monitor \/<span class=\"hljs-keyword\">var<\/span>\/log\/syslog -index main -sourcetype syslog -auth admin:<span class=\"hljs-string\">'FwdPassword'<\/span>\n\nsudo \/opt\/splunkforwarder\/bin\/splunk <span class=\"hljs-keyword\">list<\/span> forward-server -auth admin:<span class=\"hljs-string\">'FwdPassword'<\/span>\nsudo \/opt\/splunkforwarder\/bin\/splunk enable boot-start<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><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\">When the connection works, <code>list forward-server<\/code> shows the indexer under <strong>Active forwards<\/strong>. If it&#039;s listed under <strong>Configured but inactive forwards<\/strong>, the forwarder can&#039;t reach the indexer. See the troubleshooting table below. The CLI commands write to <code>outputs.conf<\/code> and <code>inputs.conf<\/code> under <code>etc\/system\/local<\/code>, which you can also manage with configuration tools. For more CLI commands, see <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\">Silent installs on Windows<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Both MSI packages accept properties on the command line, which makes them easy to roll out with deployment tools. Run these from an elevated prompt:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\">msiexec.exe \/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>-x64-release.msi AGREETOLICENSE=Yes SPLUNKUSERNAME=admin SPLUNKPASSWORD=\"YourPassword\" \/quiet\n\nmsiexec.exe \/i splunkforwarder-<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>-x64-release.msi AGREETOLICENSE=Yes SPLUNKUSERNAME=admin SPLUNKPASSWORD=\"FwdPassword\" RECEIVING_INDEXER=\"<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">indexer-ip<\/span>&gt;<\/span>:9997\" WINEVENTLOG_SEC_ENABLE=1 WINEVENTLOG_SYS_ENABLE=1 \/quiet<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><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\"><code>RECEIVING_INDEXER<\/code> sets the forward-server. The <code>WINEVENTLOG_*<\/code> properties turn on collection of the Security and System event logs. To search Windows event data once it arrives, see <a href=\"https:\/\/www.devopsschool.com\/blog\/splunk-tutorials-windows-query\/\">Splunk Tutorials: Windows Query<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verifying data and fixing common problems<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In Splunk Web on the indexer, run <code>index=_internal host=&lt;forwarder-hostname&gt; | head 10<\/code>. If you see results, the forwarder is connected, because every forwarder sends its own internal logs. Then search the index you configured, for example <code>index=main sourcetype=syslog<\/code>.<\/p>\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>Forwarder shows as inactive<\/td><td>Indexer isn&#039;t listening on 9997, or a firewall is blocking the port<\/td><td>Run <code>splunk enable listen 9997<\/code> on the indexer, open the port, and test with <code>nc -vz &lt;indexer-ip&gt; 9997<\/code><\/td><\/tr><tr><td><code>_internal<\/code> data arrives but your logs don&#039;t<\/td><td>The monitored file isn&#039;t readable by the forwarder&#039;s user, or the index doesn&#039;t exist<\/td><td>Fix file permissions and create the index on the indexer<\/td><\/tr><tr><td>Web UI won&#039;t load on 8000<\/td><td>Splunk isn&#039;t running, or another service is using the port<\/td><td>Check <code>splunk status<\/code> and <code>ss -ltnp | grep 8000<\/code><\/td><\/tr><tr><td>wget fails with 403 or 404<\/td><td>Wrong build hash or a removed version<\/td><td>Copy a fresh wget command from the download page<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Most problems show up in the forwarder log at <code>\/opt\/splunkforwarder\/var\/log\/splunk\/splunkd.log<\/code>. Look for <code>TcpOutputProc<\/code> messages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Best practices<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Keep forwarder versions the same as or older than the indexer version, and check Splunk&#039;s compatibility matrix before upgrading.<\/li>\n\n\n<li>Don&#039;t put real passwords in <code>-auth<\/code> arguments in shared scripts, because they end up in shell history. Use <code>user-seed.conf<\/code> or a secrets manager.<\/li>\n\n\n<li>Turn on TLS between forwarders and indexers in production. The plain 9997 setup shown here is only suitable for labs.<\/li>\n\n\n<li>With many forwarders, manage their inputs and outputs centrally with a deployment server instead of running CLI commands on each host.<\/li>\n\n\n<li>A new Enterprise installation runs on a time-limited trial license. After that, a reduced free license applies, with a daily indexing limit. Plan the license before you start sending production data.<\/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\">What is the difference between Splunk Enterprise and the Universal Forwarder?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Splunk Enterprise indexes, stores and searches data and has a web interface. The Universal Forwarder is a small agent that only collects data and sends it to Splunk Enterprise. It has no search or UI.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need a Splunk account to download Splunk?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You need a free splunk.com account to open the download pages and get the wget link. Once you have a valid URL, the direct download itself works with wget or curl.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Which port does the Universal Forwarder use to send data?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">By convention it sends to TCP 9997 on the indexer. You must enable that port with <code>splunk enable listen 9997<\/code>. The web UI uses 8000 and the management API uses 8089.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I still download Splunk 8.2.6?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Old builds may still be downloadable, but 8.2 is out of support and no longer gets security fixes. Use a currently supported release for any new installation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I check that the forwarder is sending data?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run <code>splunk list forward-server<\/code> on the forwarder and look under Active forwards. Then search <code>index=_internal host=&lt;forwarder-hostname&gt;<\/code> on the indexer.<\/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\/splunk-tutorials-windows-query\/\">Splunk Tutorials: Windows Query<\/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 has direct wget commands that download Splunk Enterprise (the indexer and search head) and the Splunk Universal Forwarder as Windows MSI, Linux DEB, RPM and&#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":[26272],"class_list":["post-30030","post","type-post","status-publish","format-standard","hentry","category-splunk","tag-splunk-universal-forwarder"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30030","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=30030"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30030\/revisions"}],"predecessor-version":[{"id":80673,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30030\/revisions\/80673"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=30030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=30030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=30030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}