Splunk Setup [SOC Automation with AI Implementation]
Goal:
The goal is to connect to the Ubuntu Server using SSH and to setup Splunk so it can receive logs data from the VM client.
Remote SSH Setup:
After the VM running Ubuntu Server is finished starting up, login and copy down the IP address of the machine (Note that "ip a" can also be used to find the IP address).
Using the Windows 10 Client, I can now connect to the Ubuntu Server machine using SSH via Windows PowerShell.
This returned "Connection closed by 10.0.2.8 port 22". First I check to see if SSH is active. Once I've determined that it is via the "sudo systemctl status ssh" command. It then occurred to me that the reason why the session was forcibly closed was because I was still logged in on the Ubuntu Server. Logging out fixed the issue and I have been able to successfully connect to from the Windows client using SSH.
Next I make sure to update and upgrade Ubuntu packages before I do anything else.
After completing the updates, I now would like to install Splunk. I log in to their website and get the wget link for Splunk Enterprise (10.0.1) and then proceed to download it. Once downloaded, I type "ll" to double check I have the right files downloaded and finally proceed to install it.
Next I want to start Splunk, so I go into the Splunk directory, log in to the default user, and proceed to running Splunk (./splunk start). Then I agree to the license, set an admin username, and set the password. Next I exit the program.
Next I need to configure a few settings. First I go to "Forwarding and receiving", further into "Configure receiving" and I select "New Receiving Port". I add the default port of 9997. Next I go to "Indexes" under settings and I select "New Index".
Finally, I go to "Find More Apps" under "Apps" on the Top left. I want to download "Splunk Add-on for Microsoft Windows"
Summary and Reflection:
The only issue I ran into outside of what I covered was that the VMs weren't able to establish a connection but from prior experience I knew that the solution was to change the network type of the VMs from a NAT type to a NAT-Network. I have now mostly set everything up and Splunk is ready to start receiving telemetry from the Windows client. In my next post I will be setting that up on top of setting up the n8n Server.
Comments
Post a Comment