1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
### This additional Apache web server configuration enables additional logging
### with anonymized IPv4/IPv6 addresses
#
# $Id$
#
# Place this file in /etc/httpd/conf.d/ and enable log directives you want to use
<IfModule log_config_module>
## Default log with cronolog extension
## Works with Apache 2.0/2.2/2.4
#CustomLog "|/usr/sbin/cronolog /var/log/httpd/access.log-%Y%m%d" combined
## Anonymized log
## Works with Apache 2.0/2.2/2.4
#CustomLog "|/usr/bin/ipv6loganon -f -a /var/log/httpd/access-anon_log" combined
## Anonymized log with cronolog extension
<IfVersion < 2.4>
#CustomLog "|/usr/bin/ipv6loganon -f |/usr/sbin/cronolog /var/log/httpd/access-anon.log-%Y%m%d" combined
</IfVersion>
<IfVersion >= 2.4>
#CustomLog "|$/usr/bin/ipv6loganon -f |/usr/sbin/cronolog /var/log/httpd/access-anon.log-%Y%m%d" combined
</IfVersion>
</IfModule>
|