Splunk Enterprise

Has anyone written a bash script to install splunkforwarder on a linux server?

sphiwee
Contributor

has anyone written a bash script to install splunkforwarder on a linux server? or is it impossible due to having to enter admin and password and also having to use different users while installing ?

Tags (2)
0 Karma
1 Solution

thambisetty
SplunkTrust
SplunkTrust

This is applicable for version 7.2.2 later.

you should run below commands with sudo user

 

useradd splunk
tar splunkbinary.gz -C /opt
chown -R splunk:splunk /opt/splunkforwarder
/opt/splunkforwarderk/bin/splunk enable boot-start -systemd-managed 0 -user splunk --no-prompt --accept-license
sudo -u splunk /opt/splunkforwarderk/bin/splunk start

 

 

 

————————————
If this helps, give a like below.

View solution in original post

isoutamo
SplunkTrust
SplunkTrust

Hi

there is example on Splunk’s docs https://docs.splunk.com/Documentation/Forwarder/8.0.5/Forwarder/Installanixuniversalforwarderremotel... 

I think that you could found several ansible playbooks for doing this which could be more manageable? Personally I prefer ansible over shell scrips for this kind of stuff.

r. Ismo

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...