Skip to content

Update unit5_lab.sh #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Scripts/unit5_lab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ else
sudo su - <<EOF

# Step 2: Download the Splunk package
wget -O splunk-9.0.4.1-419ad9369127-linux-2.6-amd64.deb "https://download.splunk.com/products/splunk/releases/9.0.4.1/linux/splunk-9.0.4.1-419ad9369127-linux-2.6-amd64.deb"
wget -O splunk-9.4.1-e3bdab203ac8-linux-amd64.deb "https://download.splunk.com/products/splunk/releases/9.4.1/linux/splunk-9.4.1-e3bdab203ac8-linux-amd64.deb"

# Step 3: Install the Splunk package
dpkg -i splunk-9.0.4.1-419ad9369127-linux-2.6-amd64.deb
dpkg -i splunk-9.4.1-e3bdab203ac8-linux-amd64.deb

# Create user-seed.conf file to set up the initial admin username and password
echo -e "[user_info]\nUSERNAME = codepath\nPASSWORD = codepath" > /opt/splunk/etc/system/local/user-seed.conf
Expand Down Expand Up @@ -87,4 +87,4 @@ done
echo -e "${green}[UNIT 5 LAB]${none} Added data to Splunk."

# Clean up the tmp_splunk directory
rm -rf "$HOME/tmp_splunk"
rm -rf "$HOME/tmp_splunk"