Answer the question
In order to leave comments, you need to log in
How to limit the output of log analysis results?
To analyze the activity of IP addresses on the site in the console, use the following command:
cat /var/logs/sitename.access.log | grep '13:55' | awk '{print $1}' | sort -k 1,1M -k 2n | uniq -c | sort -nr
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question