splunk
This is an old revision of the document!
Table of Contents
Splunk on Linux
Install Indexer / Heavy Forwarder
sudo useradd -m -d /opt/splunk splunk && \ sudo chsh -s /bin/bash splunk && \ sudo tar xzvf ~/splunk.tgz -C /opt && \ sudo chown -R splunk:splunk /opt/splunk && \ sudo su -c "/opt/splunk/bin/splunk start --accept-license" splunk
Configure Receiver to receive data
https://docs.splunk.com/Documentation/Splunk/9.1.2/Forwarding/Enableareceiver
export user=user export password=password export port=9997 sudo su -c "/opt/splunk/bin/splunk enable listen ${port} -auth ${user}:${password}" splunk
Set-Up Forwarding
https://docs.splunk.com/Documentation/Splunk/9.1.2/Forwarding/Deployaheavyforwarder
export user=user export password=password export host=indexer export port=9997 sudo su -c "/opt/splunk/bin/splunk enable app SplunkForwarder -auth ${user}:${password}" splunk && \ sudo su -c "/opt/splunk/bin/splunk restart" splunk && \ sudo su -c "splunk add forward-server ${host}:${port} -auth ${user}:${password}" splunk && \ sudo su -c "/opt/splunk/bin/splunk restart" splunk
Universal Forwarder
useradd -m -d /opt/splunkforwarder -s /bin/bash -U splunkfwd && \ sudo tar xzvf ~/splunk-forwarder.tgz -C /opt && \ sudo chown -R splunkfwd:splunkfwd /opt/splunkforwarder && \ sudo /opt/splunkforwarder/bin/splunk start --accept-license
splunk.1703226739.txt.gz · Last modified: 2023/12/22 07:32 by baumi