Ticket #2187: logio-for-debian.patch
| File logio-for-debian.patch, 1.5 KB (added by kilburn, 2 years ago) |
|---|
-
configs/debian/apache/httpd.conf
15 15 # 16 16 17 17 LogFormat "%B" traff 18 LogFormat "%v %b %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" " ispcplog18 LogFormat "%v %b %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" ispcplog 19 19 20 20 CustomLog "| /var/www/ispcp/engine/ispcp-apache-logger" ispcplog 21 21 ErrorLog "| /var/www/ispcp/engine/ispcp-apache-logger -e" -
configs/debian/ispcp.conf
257 257 258 258 APACHE_GROUP = www-data 259 259 260 APACHE_LOGIO_ACTIVE = yes 261 260 262 # 261 263 # Postfix MTA Data 262 264 # -
engine/ispcp-apache-logger
137 137 } 138 138 while ( my $log_line = <STDIN> ) { 139 139 my ($vhost, $size, $line) = $log_line =~ m/^(\S+) (\d+|-) (.*)$/s; 140 # Handle mod_logio output if available 141 if ( exists($main::cfg{'APACHE_LOGIO_ACTIVE'}) && $main::cfg{'APACHE_LOGIO_ACTIVE'} eq 'yes' ) { 142 my ($in, $out) = $log_line =~ m/(\d+|-) (\d+|-)$/s; 143 $size = $in + $out; 144 } 140 145 141 146 if( !defined($vhost) || !defined($size) ){ 142 147 print STDERR "[ispcp-apache-logger] Trouble line:\n\t$log_line\n";
