Extract Unique IP Addresses From Apache Log Linux CentOs

Log in to your account using SSH and change to the directory where the apache logs available.

Then issue the command given below.

awk ‘{print $1}’ access.log | sort | uniq -c | sort -n | tail -n 10

Share

Leave a Reply

Your email address will not be published. Required fields are marked *