Thanks to Roger Devaux for reporting and testing.
Calamaris is now able to process big log files consuming about
10M or RAM (was several gigabytes before).
{
if ($filestr =~ /access\.log/) {
open (LOG,"gzip -dc $filestr |");
- foreach (<LOG>) {
+ while (<LOG>) {
if (substr($_,0,10) >= $date_from) { if (substr($_,0,10) <= $date_to) { print TMPLOG "$_"; } }
}
close(LOG);
{
if ($filestr =~ /access\.log/) {
open (LOG,$filestr);
- foreach (<LOG>) {
+ while (<LOG>) {
if (substr($_,0,10) >= $date_from) { if (substr($_,0,10) <= $date_to) { print TMPLOG "$_"; } }
}
close(LOG);
srv/web/ipfire/cgi-bin/proxy.cgi
var/ipfire/general-functions.pl
var/ipfire/langs
+var/ipfire/proxy/calamaris/bin/mkreport
usr/local/bin/getconntracktable
usr/sbin/redirect_wrapper