To monitor browsing habits of company users, and to use the information for possible site blocking or traffic limiting with MasterShaper, URLSnarf along with a Perl script can be used to log specific items to a database and place the full capture results into a log file. The log file will be rotated with logrotate.
The Perl module Logfile::Access is key. On my machine it needed to be manually installed:
perl -MCPAN -eshell install Logfile::Access # a missing file will be encountered exit cd ~/.cpan/build/Logfile-Access-1.30/Access.pm nano Access.pm # change line 38 to '/etc/mime.types' make make install