Re: rotatelogs: log name is one day off On Feb 8, 4:28*pm, Luuk <l...@invalid.lan> wrote:
> But is also says this:
> This creates the files /var/logs/logfile.nnnn where nnnn is the system
> time at which the log nominally starts (this time will always be a
> multiple of the rotation time, so you can synchronize cron scripts with
> it). At the end of each rotation time (here after 24 hours) a new log is
> started.
>
> I have my log configured like:
> CustomLog /var/log/apache2/access_log combined
>
> and my /etc/logratate.d/apache2 script is configured to rotatie the logs....
> --
> Luuk
I'm not sure what you're trying to say in the post above. The log
files _are_ being rotated at midnight. I can see that right now. I'm
using -l option to use a local timezone instead of UTC. The issue is
that the date in the name of the log file is off.
For example, accesslog_2010_02_06.log has _only_ http requests dated 7/
Feb/2010, accesslog_2010_02_07.log has only http requests dated 8/Feb/
2010.
If I started my Apache right now at 5:00pm EST, a log file name would
have a date of yesterday which is wrong. It should use current year,
month and day. This is how my other configuration behaves (Apache
2.2.6 actually).
/etc/logrotate.d is not an option for me. It does not keep all log
files
--
i5mast |