You are hereForums / Bugs / Incorrect Logs file rotation

Finally, the wait is over!!! Videocache 2.0.0 is here :-) Check changelog for changes and new features in this version. Contact Us for your free upgrade!!

Incorrect Logs file rotation


2 replies [Last post]
Offline
Joined: Jan 7 2010
Incorrect Logs file rotation

I'm using v1.9.4 and I started to notice some problem in the log file rotation system.
This is my log configuration:

logdir = /var/log/videocache/
max_logfile_size = 1
max_logfile_backups = 20

And this is my /var/log/videocache/ content:

[videocache]# ll /var/log/videocache
total 1760
-rw-r----- 1 squid squid 0 abr 8 23:22 videocache.log
-rw-r----- 1 squid squid 0 abr 8 23:22 videocache.log.1
-rw-r--r-- 1 squid squid 1797257 abr 9 09:24 videocache.log.2

As you can see on the dates, new logs are appended to videocache.log.2, and that file has exceede the maximum "1mb" configured.

I now that this is not a critic topic, but it could generate problems in the future if rotation never takes place.

Natalio.

admin's picture
Offline
Joined: Nov 2 2008

Hi!

Thanks for reporting. Please mention your operating system and python version being used currently. I'll look at it and will report back whenever its fixed.

Thank You!

Offline
Joined: Jan 7 2010

My system info:

[root]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@webserver ~]# uname -a
Linux webserver 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:37:14 EDT 2010 i686 i686 i386 GNU/Linux

And here is my python info:

[root]# rpm -qa | grep python
libxml2-python-2.6.26-2.1.2.8
python-elementtree-1.2.6-5
python-urlgrabber-3.1.0-5.el5
audit-libs-python-1.7.13-2.el5
python-sqlite-1.1.7-1.2.1
gamin-python-0.1.7-8.el5
python-iniparse-0.2.3-4.el5
rpm-python-4.4.2.3-18.el5
dbus-python-0.70-9.el5_4
python-2.4.3-27.el5
libselinux-python-1.33.4-5.5.el5

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters shown in the image.

My Book on Squid

Purchase/Renew

Go to Pricing page to purchase a new license or renew your existing license.

Recent comments

Who's online

There are currently 0 users and 205 guests online.