MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Splunk Tutorials: Download Splunk & Universal Forwarder

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 TGZ packages. Below the commands you'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.


What the commands above download

Splunk ships two separate products. Splunk Enterprise is the full server. It indexes and stores data, runs searches and serves the web UI. The Universal Forwarder (UF) 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.

PackageUse it onDefault install path
.debDebian, Ubuntu/opt/splunk or /opt/splunkforwarder
.rpmRHEL, Rocky, AlmaLinux, Amazon Linux, SUSE/opt/splunk or /opt/splunkforwarder
.tgzAny 64-bit Linux, or when you want a custom pathWherever you extract it, usually /opt
x64-release.msi64-bit WindowsC:\Program Files\Splunk or C:\Program Files\SplunkUniversalForwarder

Each file name contains the version (8.2.6) and a build hash (a6fe1ee8894b). The URL only works when both match a real release, so you can't just change the version number on its own.

Updating the commands for a current release

The example above uses Splunk 8.2.6. The 8.2 line is out of support, and it'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 Download via Command Line (wget). 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.

# Fill these in from the wget command on the download page
VERSION="<version>"
BUILD="<build-hash>"
FILE="splunk-${VERSION}-${BUILD}-Linux-x86_64.tgz"   # use the exact name shown on the page

wget -O "$FILE" "https://download.splunk.com/products/splunk/releases/${VERSION}/linux/${FILE}"

# Verify integrity: Splunk publishes a .sha512 file next to each package
wget -O "$FILE.sha512" "https://download.splunk.com/products/splunk/releases/${VERSION}/linux/${FILE}.sha512"
cat "$FILE.sha512"
sha512sum "$FILE"Code language: PHP (php)

The two hashes must match. If they don't, the download is corrupt or incomplete. Delete it and download it again. For the forwarder, replace products/splunk with products/universalforwarder and splunk- with splunkforwarder-.

Note: Always put the URL in quotes. If an old version's URL returns 403 Forbidden or 404 Not Found, that build has been removed or the name is wrong. Get a fresh link from the download page.

Downloading on Windows

Windows doesn't include GNU wget. In Windows PowerShell 5.1, wget is an alias for Invoke-WebRequest, which takes different parameters, so the commands above won't work as written. Use one of these instead:

# PowerShell
$url = "https://download.splunk.com/products/universalforwarder/releases/<version>/windows/<file>.msi"
Invoke-WebRequest -Uri $url -OutFile "splunkforwarder.msi"
Get-FileHash .\splunkforwarder.msi -Algorithm SHA512

# Or the curl.exe that ships with Windows 10 and later
curl.exe -L -o splunkforwarder.msi "$url"Code language: PHP (php)

Current Splunk Enterprise releases are built for 64-bit systems only, so use the x64-release.msi package. Don't use the 32-bit Windows archive listed above.

Installing Splunk Enterprise on Linux

Don'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.

  1. Create a service account: sudo useradd -m -r splunk
  2. Install the package. DEB: sudo dpkg -i splunk-*.deb. RPM: sudo dnf install ./splunk-*.rpm (or sudo rpm -i). TGZ: sudo tar -xzf splunk-*.tgz -C /opt
  3. Set ownership: sudo chown -R splunk:splunk /opt/splunk
  4. Start it and accept the license: sudo -u splunk /opt/splunk/bin/splunk start --accept-license. On first start you'll be asked to create the admin username and password.
  5. Enable start at boot: sudo /opt/splunk/bin/splunk enable boot-start -user splunk. Add -systemd-managed 1 to create a systemd unit.
  6. Open http://<server-ip>:8000 and sign in with the admin account.

Before any forwarder can send data, the indexer has to listen for it. Port 9997 is the usual choice:

sudo -u splunk /opt/splunk/bin/splunk enable listen 9997 -auth admin:'YourPassword'
sudo -u splunk /opt/splunk/bin/splunk display listen -auth admin:'YourPassword'

# Open the ports if a host firewall is running (firewalld example)
sudo firewall-cmd --permanent --add-port={8000,9997}/tcp && sudo firewall-cmd --reloadCode language: PHP (php)

Note: For unattended installs, skip the password prompt by creating /opt/splunk/etc/system/local/user-seed.conf before the first start. Put a [user_info] stanza in it with USERNAME and PASSWORD. Splunk hashes the password and deletes the file on first start.

Installing the Universal Forwarder and connecting it

Run these steps on each machine you want to collect logs from. The forwarder goes in /opt/splunkforwarder and uses the same CLI commands. Recent DEB and RPM forwarder packages may create their own service account. Check who owns the install with ls -ld /opt/splunkforwarder and run commands as that user.

sudo dpkg -i splunkforwarder-*.deb          # or: sudo dnf install ./splunkforwarder-*.rpm
sudo /opt/splunkforwarder/bin/splunk start --accept-license   # creates the forwarder's local admin

# Point the forwarder at the indexer
sudo /opt/splunkforwarder/bin/splunk add forward-server <indexer-ip>:9997 -auth admin:'FwdPassword'

# Choose what to send
sudo /opt/splunkforwarder/bin/splunk add monitor /var/log/syslog -index main -sourcetype syslog -auth admin:'FwdPassword'

sudo /opt/splunkforwarder/bin/splunk list forward-server -auth admin:'FwdPassword'
sudo /opt/splunkforwarder/bin/splunk enable boot-startCode language: PHP (php)

When the connection works, list forward-server shows the indexer under Active forwards. If it's listed under Configured but inactive forwards, the forwarder can't reach the indexer. See the troubleshooting table below. The CLI commands write to outputs.conf and inputs.conf under etc/system/local, which you can also manage with configuration tools. For more CLI commands, see Splunk Commands Reference.

Silent installs on Windows

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:

msiexec.exe /i splunk-<version>-<build>-x64-release.msi AGREETOLICENSE=Yes SPLUNKUSERNAME=admin SPLUNKPASSWORD="YourPassword" /quiet

msiexec.exe /i splunkforwarder-<version>-<build>-x64-release.msi AGREETOLICENSE=Yes SPLUNKUSERNAME=admin SPLUNKPASSWORD="FwdPassword" RECEIVING_INDEXER="<indexer-ip>:9997" WINEVENTLOG_SEC_ENABLE=1 WINEVENTLOG_SYS_ENABLE=1 /quietCode language: HTML, XML (xml)

RECEIVING_INDEXER sets the forward-server. The WINEVENTLOG_* properties turn on collection of the Security and System event logs. To search Windows event data once it arrives, see Splunk Tutorials: Windows Query.

Verifying data and fixing common problems

In Splunk Web on the indexer, run index=_internal host=<forwarder-hostname> | head 10. If you see results, the forwarder is connected, because every forwarder sends its own internal logs. Then search the index you configured, for example index=main sourcetype=syslog.

SymptomLikely causeFix
Forwarder shows as inactiveIndexer isn't listening on 9997, or a firewall is blocking the portRun splunk enable listen 9997 on the indexer, open the port, and test with nc -vz <indexer-ip> 9997
_internal data arrives but your logs don'tThe monitored file isn't readable by the forwarder's user, or the index doesn't existFix file permissions and create the index on the indexer
Web UI won't load on 8000Splunk isn't running, or another service is using the portCheck splunk status and ss -ltnp | grep 8000
wget fails with 403 or 404Wrong build hash or a removed versionCopy a fresh wget command from the download page

Most problems show up in the forwarder log at /opt/splunkforwarder/var/log/splunk/splunkd.log. Look for TcpOutputProc messages.

Best practices

  • Keep forwarder versions the same as or older than the indexer version, and check Splunk's compatibility matrix before upgrading.
  • Don't put real passwords in -auth arguments in shared scripts, because they end up in shell history. Use user-seed.conf or a secrets manager.
  • Turn on TLS between forwarders and indexers in production. The plain 9997 setup shown here is only suitable for labs.
  • With many forwarders, manage their inputs and outputs centrally with a deployment server instead of running CLI commands on each host.
  • 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.

Frequently asked questions

What is the difference between Splunk Enterprise and the Universal Forwarder?

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.

Do I need a Splunk account to download Splunk?

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.

Which port does the Universal Forwarder use to send data?

By convention it sends to TCP 9997 on the indexer. You must enable that port with splunk enable listen 9997. The web UI uses 8000 and the management API uses 8089.

Can I still download Splunk 8.2.6?

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.

How do I check that the forwarder is sending data?

Run splunk list forward-server on the forwarder and look under Active forwards. Then search index=_internal host=<forwarder-hostname> on the indexer.

Related tutorials

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals

Related Posts

Splunk Tutorial: Install & Configure Universal Forwarders

The Splunk Universal Forwarder (UF) is a small agent that reads logs on a host and sends them to a Splunk indexer or to Splunk Cloud. The…

Read More

Splunk Tutorials: App Deployment Server

A Splunk deployment server keeps apps such as inputs.conf and outputs.conf in one central place and pushes them to universal forwarders, which check in regularly as deployment…

Read More

Splunk FAQ

How do I create source types for data originating from Forwarders? The Splunk platform does not support data preview through universal forwarders. Use a full Splunk platform…

Read More

Splunk Tutorial: Install & Configure Splunk Server (Indexer + Search Head + Universal forwarder)

Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have…

Read More

Top 50 Splunk interview questions and answers

1) Define Splunk It is a software technology that is used for searching, visualizing, and monitoring machine-generated big data. It monitors and different types of log files…

Read More

Top Splunk interview questions and answers

What are the components of Splunk? There are 3 main components in Splunk: Splunk Forwarder, used for data forwarding. Splunk Indexer, used for Parsing and indexing the…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x