(Reading time: 1 minute)

Linux

The command,

 
 
 
grep 'search-text' /path/to/your/access.log | cut -d' ' -f1 | sort | uniq -c | sort -rn
 
 
 

helps to view the summarized list of ip address with the count.

This command is very helpful to identify unique hits of an URL, identify users misusing your server resources, count of an user agent and many more.

A very useful tip for System and website administrators!

 

 


Similar articles

Chillzee Tag Cloud

About Chillzee

Chillzee.com is an entrepreneurship portal.

The site provides informative topics on Organizational and Strategic needs.