Professional Documents
Culture Documents
AWS Command List
AWS Command List
Note: Check whether you have opened the port 8000 and 9997 in your Redhat Linux Instance.
1. After opening ssh connection in Putty you are supposed to enter user name enter: ubuntu
2. sudo apt update
3. sudo /var
4. cd /var
5. ls (Confirm that No folder named as www should be there )
6. sudo apt install apache2
7. ls ( should see folder www)
a. cd www
8. cd html
9. ls ( should see index.html)
10. sudo rm index.html
11. sudo vi index.html
12. press insert 🡪paste the code(available at the end of the document)🡪 hit esc 🡪type :wq🡪Press Enter
13. cd /var/log
14. ls
15. cd apache2
16. ls
17. tail –f ( press Ctrl + c )
Check whether the website is up and running by typing the below
command in browser https://public ip of webserver:80
Then go to your splunk app Under settings🡪 Indexes🡪click on new indexes ( And name it
as webserver )
7. sudo vi inputs.conf ( press insert 🡪paste the below code🡪hit esc 🡪type :wq🡪 Press
Enter)
[monitor:///var/log/apache2/access.log]
index=webserver
sourcetype=access_combined
8. sudo vi outputs.conf ( press insert 🡪paste the below code ( enter private IP)🡪hit esc
🡪type :wq🡪Press Enter )
[tcpout:tosplunk]
server=paste private IP of splunk:9997
9. cd ../../../bin/
10. sudo ./splunk start --accept-license
11. sudo ./snk enable boot-start
For any Error if logs are not visible in splunk restart webserver by
typing the command after step 9 sudo ./splunk restart
<body>
<imgsrc="SOCExperts.png"alt="SOC Experts"style="width:50%;">
<div>
<ahref="https://www.google.com/search?q=soc+experts+review&rlz=1C5CHFA_enIN919IN919&oq=soc+experts&aqs=chro
me.1.69i59j35i39j0l3j69i60l3.5578j0j7&sourceid=chrome&ie=UTF-8#lrd=0x3bae14e2cc6bea2f:0xf8c207b928c25f0c,1,,,"target
="_blank">STUDENT REVIEWS</a><br><br>
<ahref="https://www.socexperts.com/"target="_blank">WEBSITE</a><br><br>
<ahref="https://www.linkedin.com/organization-guest/company/socexperts"target="_blank">LINKEDIN</a><br><br>
<ahref="https://www.facebook.com/SOCExperts"target="_blank">FACEBOOK</a><br><br>
<ahref="https://www.instagram.com/soc_experts/"target="_blank">INSTAGRAM</a>
</div>
</body>
</html>