-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Grant wrote: | I've been using webalizer to analyze apache2's access_log. When I | browse the raw log file, I realize I'm missing out on a lot of | information when I'm using webalizer, but then again, the raw log file | is too much info. Is there another tool that lets you see, for | example, all raw log entries that include referrer information that is | not from my own site for a particular day? | | - Grant
coreutils!
For example, to see all log entries for today that didn't come from 127.0.0.1 you could do:
$ grep -v '127.0.0.1' /var/log/apache2/access_log | grep $(date +%d/%b/%Y)
If you only want say the referrer information for sites that aren't yours, you could do:
$ cat /var/log/apache2/access_log | awk '{ print $11 }' | grep -v 'http://yourdomain/'
grep/sed/awk etc are indespensible for stuff like this. learn them!
Cheers - -- I have accepted Provolone into my life!
Aaron Walker <[EMAIL PROTECTED]> [ Gentoo/BSD | cron | forensics | shell-tools | commonbox | netmon ] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCAeupC3poscuANHARAs+9AKDp0m2VLHQgKpmj/rl0wg/wfAtB6gCeOnDL xdt/HJZtg4EwZoexNg3XhgM= =HR91 -----END PGP SIGNATURE-----
-- gentoo-user@gentoo.org mailing list