List Unique IPs that Accessed Linux Server

IPs from Apache access logs…

$ cat ./access_log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -20

IPs that logged into server (via SSH, etc)…

$ last

 

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments