Professional Documents
Culture Documents
Installation
The universal forwarder is available on Linux as a tar file, an RPM package, or a DEB package.
However, we recommend installing the Splunk Universal Forwarder from a tar file.
1. Expand the tar file into an appropriate directory using the tar command. To install into
/opt/splunkforwarder, run:
Note:
Please change the filename of the tar file in the command based on the version you have
downloaded. Please refer the naming convention and command used below:
tar xvzf splunkforwarder-<…>-Linux-x86_64.tgz -C /opt
First Start
2. Start the universal forwarder and accept the license agreement, run:
cd /opt/splunkforwarder/bin
./splunk start --accept-license
The universal forwarder prompts for administrator credentials the first time you start it.
When you start the forwarder for the first time under most conditions, it prompts you to create
credentials for the Splunk administrator user. The following text appears:
3. Type in the name you want to use for the administrator user. This is the user that you log
into the universal forwarder with, not the user that you use to log into your machine or onto
splunk.com. You can press Enter to use the default username of admin. The following text
then appears:
4. Type in the password that you want to assign to the user. The password must meet the
requirements that the prompt displays.
Set the password and keep it safe for future troubleshooting in MAHB.
Configuration
5. Configure the universal forwarder and specify the Deployment Server (DS) it will connect
to, and restart the universal forwarder for the change to take effect. For MAHB, the
Deployment Server address is LMAN.malaysiaairports.com.my:8089:
cd /opt/splunkforwarder/bin
./splunk set deploy-poll LMAN.malaysiaairports.com.my:8089
./splunk restart
cd /opt/splunkforwarder/bin
./splunk enable boot-start
Management
The Universal Forwarder management commands are as below:
Removal
The Universal Forwarder can be removed by deleting the entire /opt/splunkforwarder
directory.
References
• Install on Linux:
https://docs.splunk.com/Documentation/Forwarder/8.0.0/Forwarder/Installanixuniversalforwar
der#Install_the_universal_forwarder_on_Linux