Linux Extract Unique IP Addresses From Apache Log Linux CentOs January 26, 2017 Pramod T P Leave a comment 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