111.225.78.157 - - [13/Aug/2019:16:03:08 +0800] "POST /api/login HTTP/1.1" 200 249 "http://admin.58zhongxun.com/admin/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
获取所有ip并且去重:
grep -E "\w+.\w+.\w+.\w+ - - " /var/log/admin.58zhongxun.com.access.log | awk -F " - - " '{print $1}' | sort | uniq