Forum Moderators: phranque
...and did some more reading online...though I still can't figure out how to set Apache to generate monthly access logs. In fact I can't seem to find any example syntax that is time based. My current host does it almost perfectly (clips the logs by four hour time zone difference) by generating a log for each month and even more importantly does not delete the log files (important to me for statistical analysis).
In XP's Apache httpd.conf file I have the following...
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>CustomLog "logs/access.log" combined
</IfModule>
The log format is perfect though it infinitely adds to the log file. When I tried setting Apache up on Linux the entire configuration file was empty so for now I'd just like to figure out how to gain a little control over the logs on XP please.
- John
I faced the same problem to track the log content.
I could not find anything after searching forums.
I finally wrote a simple program to read the ACCESS
file in my logs directory. Anyway,the access file
is hard to read. There are too much information in it.
My program filter out the things I do not want to see.
I just click the program to run when I need it. My case
is once a week.
- John