How do I scan files for unique IP addresses where the IP may not be the first field in each line? Fortunately, httpd-access.log has IPs as the first field so
awk '{if (!unique[$1]++) {print $1}}' /var/log/httpd-access.log
works, but how do I do this for something like auth.log where the IPs are elsewhere?