• Bilal Malik

Find the top ten IP list from the apache access log file

We can use the below command to find the top ten IP list from the apache access log in ubuntu

awk '{ print $1}' access.log | sort | uniq -c | sort -nr | head -n 10 

I hope it helps.

#command #linux #ubuntu

0 views

©2020 by Bilal Usean. Proudly created with Wix.com