User Tools

Site Tools


splunk

This is an old revision of the document!


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
sudo su -c "/opt/splunk/bin/splunk enable listen 9997 -auth ${user}:${password}

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} && \
sudo su -c "/opt/splunk/bin/splunk restart" splunk

Universal Forwarder

useradd -m -d /opt/splunkforwarder splunkfwd && \
chsh -s /bin/bash 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.1701273370.txt.gz · Last modified: 2023/11/29 16:56 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki