Start splunk
This commit is contained in:
parent
729ea5be48
commit
1faf1986ae
1 changed files with 5 additions and 4 deletions
|
|
@ -10,14 +10,15 @@ execute "Install splunk" do
|
||||||
command "mv /tmp/install/splunk /opt/splunk"
|
command "mv /tmp/install/splunk /opt/splunk"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
execute "Start splunk" do
|
||||||
|
command "cd /opt/splunk/bin && ./splunk start --accept-license"
|
||||||
|
end
|
||||||
|
|
||||||
execute "Put splunk into forwarding mode" do
|
execute "Put splunk into forwarding mode" do
|
||||||
command "cd /opt/splunk/bin && ./splunk enable app SplunkLightForwarder --accept-license -auth admin:changeme"
|
command "cd /opt/splunk/bin && ./splunk enable app SplunkLightForwarder -auth admin:changeme"
|
||||||
end
|
end
|
||||||
|
|
||||||
execute "Add forwarding server" do
|
execute "Add forwarding server" do
|
||||||
command "cd /opt/splunk/bin && ./splunk add forward-server splunk.joindiaspora.com:9997 -auth admin:changeme"
|
command "cd /opt/splunk/bin && ./splunk add forward-server splunk.joindiaspora.com:9997 -auth admin:changeme"
|
||||||
end
|
end
|
||||||
|
|
||||||
execute "Start splunk" do
|
|
||||||
command "cd /opt/splunk/bin && ./splunk start"
|
|
||||||
end
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue