Server access log

Problem

Server is overloaded

Solution

If you get any notification from AWS server that is overloaded or anything else here is where the access log is: bash /var/log/apache2/dmain.access.log

To show how many hits by a particular IP, just type this: bash cat /var/log/apache2/www.domain.access.log | grep -c 194.000.00.00

to see the errors on the server bash cd /var/log/apache2/ then tail -500 domain.org.uk.error.log to monitor the server cpu usage type: htop

Who –q –count :- tell how many people are logged in

See some more option on who is logged in and other options look