- New parameter: Added URLNotCaseSensitive.
- New parameter: Added URLWithQueryWithoutFollowingParameters to exclude some
parameters from URL when URLWithQuery is on.
+- Added tag %Dw-n for LogFile parameter (replaced with the day number in week
+ but differs from %DW-n because start with 0).
- Fixed: -debug option is allowed in migrate.
- Fixed: Wrong window was opened when clicking on flag link when
UseFramesWhenCGI was on.
4.0+ for tag %DW-n<br>\r
4.1+ for tag %NS-n<br>\r
5.0+ for tag %WY-n<br>\r
+5.1+ for tag %Dw-n<br>\r
<br># "LogFile" contains the web server logfile to analyze.\r
<br># You can use a full path or relative path from awstats.pl directory.\r
<br># Example: "/var/log/apache/access.log"\r
<br># %WY-n is replaced with the week number in year (1-52)\r
<br># %DW-n is replaced with the day number in week (1-7, 1=sunday)\r
<br># use n=24 if you need (1-7, 1=monday)\r
+<br># %Dw-n is replaced with the day number in week (0-6, 0=sunday)\r
+<br># use n=24 if you need (0-6, 0=monday)\r
<br># Use 0 for n if you need current year, month, day, hour...\r
<br># Example: "/var/log/access_log.%YYYY-0%MM-0%DD-0.log"\r
<br># Example: "C:/WINNT/system32/LogFiles/W3SVC1/ex%YY-24%MM-24%DD-24.log"\r
# %WY-n is replaced with the week number in year (1-52)
# %DW-n is replaced with the day number in week (1-7, 1=sunday)
# use n=24 if you need (1-7, 1=monday)
+# %Dw-n is replaced with the day number in week (0-6, 0=sunday)
+# use n=24 if you need (0-6, 0=monday)
# Use 0 for n if you need current year, month, day, hour...
# Example: "/var/log/access_log.%YYYY-0%MM-0%DD-0.log"
# Example: "C:/WINNT/system32/LogFiles/W3SVC1/ex%YY-24%MM-24%DD-24.log"
if ($oldersec < 10) { $oldersec = "0$oldersec"; }
# Replace tag with new value
if ($timetag =~ /YYYY/i) { $LogFile =~ s/%YYYY-$timephase/$olderyear/ig; next; }
- if ($timetag =~ /YY/i) { $LogFile =~ s/%YY-$timephase/$oldersmallyear/ig; next; }
- if ($timetag =~ /MM/i) { $LogFile =~ s/%MM-$timephase/$oldermonth/ig; next; }
- if ($timetag =~ /DD/i) { $LogFile =~ s/%DD-$timephase/$olderday/ig; next; }
- if ($timetag =~ /HH/i) { $LogFile =~ s/%HH-$timephase/$olderhour/ig; next; }
- if ($timetag =~ /WM/i) { $LogFile =~ s/%WM-$timephase/$olderweekofmonth/ig; next; }
- if ($timetag =~ /WY/i) { $LogFile =~ s/%WY-$timephase/$olderweekofyear/ig; next; }
- if ($timetag =~ /DW/i) { $LogFile =~ s/%DW-$timephase/$olderwday/ig; next; }
- if ($timetag =~ /NS/i) { $LogFile =~ s/%NS-$timephase/$olderns/ig; next; }
+ if ($timetag =~ /YY/i) { $LogFile =~ s/%YY-$timephase/$oldersmallyear/ig; next; }
+ if ($timetag =~ /MM/i) { $LogFile =~ s/%MM-$timephase/$oldermonth/ig; next; }
+ if ($timetag =~ /DD/i) { $LogFile =~ s/%DD-$timephase/$olderday/ig; next; }
+ if ($timetag =~ /HH/i) { $LogFile =~ s/%HH-$timephase/$olderhour/ig; next; }
+ if ($timetag =~ /NS/i) { $LogFile =~ s/%NS-$timephase/$olderns/ig; next; }
+ if ($timetag =~ /WM/i) { $LogFile =~ s/%WM-$timephase/$olderweekofmonth/ig; next; }
+ if ($timetag =~ /WY/i) { $LogFile =~ s/%WY-$timephase/$olderweekofyear/ig; next; }
+ if ($timetag =~ /DW/) { $LogFile =~ s/%DW-$timephase/$olderwday/g; next; }
+ if ($timetag =~ /Dw/) { my $olderwday0=$olderwday-1; $LogFile =~ s/%Dw-$timephase/$olderwday0/g; next; }
# If unknown tag
error("Error: Unknown tag '\%$timetag' in LogFile parameter.");
}
$LogFile =~ s/%MM/$nowmonth/ig;
$LogFile =~ s/%DD/$nowday/ig;
$LogFile =~ s/%HH/$nowhour/ig;
+ $LogFile =~ s/%NS/$nowns/ig;
$LogFile =~ s/%WM/$nowweekofmonth/ig;
$LogFile =~ s/%WY/$nowweekofyear/ig;
- $LogFile =~ s/%DW/$nowwday/ig;
- $LogFile =~ s/%NS/$nowns/ig;
+ $LogFile =~ s/%DW/$nowwday/g;
+ my $nowwday0=$nowwday-1; $LogFile =~ s/%Dw/$nowwday0/g;
$LogFormat =~ s/\\//g;
if ($Debug) {
debug(" LogFile='$LogFile'",2);