Setting Up Splunk Enterprise and Universal Forwarder

  1. Download and install Splunk Enterprise in a Windows machine. Refer to the Splunk Enterprise link to register and download the latest version of Splunk Enterprise.

  2. Access the Linux machine and install Syslog ng following the steps below.

  3. Install the epel-release using the command:

    dnf install -y epel-release
    
Screenshot 2025-11-19 095749-20251119-042750.png


Install epel-release

  1. Install syslog-ng using command below:

dnf install -y syslog-ng


Screenshot 2025-11-19 095832-20251119-042832.png

Install syslog-ng

  1. Get the Splunk Universal Forwarder installation file using the wget command:

wget -O splunkforwarder-10.0.2-e2d18b4767e9.x86_64.rpm "https://download.splunk.com/products/universalforwarder/releases/10.0.2/linux/splunkforwarder-10.0.2-e2d18b4767e9.x86_64.rpm"


Screenshot 2025-11-19 141723-20251119-084724.png


Get the Splunk Universal Forwarder Installation Universal Forwarder installation file

  1. Install Splunk Universal Forwarder.

sudo rpm -i splunkforwarder-10.0.2-e2d18b4767e9.x86_64.rpm


image-20251126-022105.png


Splunk Universal Forwarder installation

  1. Create a user account for the Splunk Universal Forwarder by running the following command. When prompted, enter a username and password to complete the setup.

sudo /opt/splunkforwarder/bin/splunk start --accept-license


image-20251126-023654.png


Create Splunk Universal Forwarder user

  1. The following command configures the Splunk Universal Forwarder to start automatically every time the system boots. This ensures that log forwarding from the ESKM syslog server to Splunk Enterprise continues without requiring manual intervention after reboots or maintenance activities.

/opt/splunkforwarder/bin/splunk enable boot-start


Screenshot 2025-11-19 142512-20251119-085513.png


Enable Splunk Universal Forwarder