You can use awk to display only htusers and what they accessed (change path as needed):
awk '$3 !~ /-/ {print $1,$3,$6,$7 }' /var/log/httpd/access_log
For logrotate users with access_log.1, access_log.2 (non-gzipped), you can use this (change path as needed):
for i in /var/log/httpd/access_log*; do awk '$3 !~ /-/ {print $1,$3,$6,$7 }' $i; done
Last edited by Snowbat; 09-09-2005 at 07:57 PM.
|