A program for managing and archiving individual log files. It allows automatic rotation, compression, removal, and mailing of log files. Jobs can be configured to run hourly, daily, weekly, monthly, yearly or when reaching a certain size or age.

learn more… | top users | synonyms

3
votes
2answers
12k views

Ubuntu 14.04 - logrotate does not rotate /var/log/* (rsyslog config)

I have a bunch of Ubuntu 14.04 servers I manage where logrotate is not rotating anything under /var/log/*. I'm going to assume its an issue with the /etc/logrotate.d/rsyslog as I see other entries in ...
2
votes
1answer
296 views

logrotate seems work incorrect

I'm using: Linux workdesk 3.16.0-31-generic #43~14.04.1-Ubuntu SMP Tue Mar 10 20:13:38 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: ...
0
votes
1answer
539 views

logrotate fails to rotate logs: error setting owner

Recently I've noticed that logrotate does not rotate my logs. user1@host:~$ /usr/sbin/logrotate /home/user1/logrotate.conf -v gives me an error: error: error setting owner of /home/logs/mylog.log.1 ...
0
votes
1answer
115 views

Logrotate - keep file for two days

Is there any possibility to configure logrotate so it will keep file for 2 days instead of 1? e.g. this configuration copytruncate daily compress dateext missingok leads to compressing file every ...
0
votes
1answer
44 views

Rotate binary files

I'm trying to solve a problem with rotating binary files. I have video files which are recorded from IP camera, and I want to delete oldest files when I have less then e.g. 10 Gb of free space. ...
0
votes
1answer
2k views

Make the daily log rotate run on exact time

I have Ubuntu 12.04.2 LTS server. My daily log rotations which are listed under /etc/logrotate.d/ are executed at the morning around 7:00 am, but it is not on exact time, each day it changed on range ...
9
votes
0answers
678 views

Upstart not reopening log files on logrotation

We use upstart to manage our services on our Ubuntu servers. They produce logs which are logged out to /var/log/upstart/SERVICE_NAME.log Then daily, the log files are rotated using the logrotation ...
1
vote
0answers
113 views

Apache daemon problem /etc/init.d/apache2

For the last 5 weeks, I have monitored some strange behavior. Every week at logrotate process time, the init script /etc/init.d/apache2 is being rotated as if it were a log file. The first week it ...
1
vote
0answers
34 views

Log rotate daily time for specific application

I know that similar question has been already asked, but there was something I am missing: Is there any option to specify the hour of rotating the logs, but only for one application ? I know that ...
0
votes
0answers
48 views

Log rotation configuration generates binary zip files

My log rotation setup generates binary files name type is like app-01a.log.1.gz This is my configuration: /opt/app/logs/dip/*.log { size 512M rotate 10000 compress nodateext ...
0
votes
0answers
111 views

/var/log/upstart/systemd-logind.log is not rotating (Ubuntu 14.04)

On several (corporate, not personal) Ubuntu 14.04 machines, I'm seeing the following behavior: # date Wed Nov 11 21:27:50 UTC 2015 # ls -lAF /var/log/upstart/ total 2416 [...] -rw-r------ 1 root root ...
0
votes
0answers
69 views

logrotate broken after security breech

I downloaded a PDF which evidently had Linux malware, which executed when I ran the PDF through firefox, or atril, Im not sure which. I figured it out shortly after running clamav, and I believe ...
0
votes
0answers
51 views

Logrotate errors on weekends

Update: After a lot of trial and error, I figured out that my logrotate for the giant backup was causing all the errors on the other logrotates. I had tried to only get 2 rotations so it'd look like: ...
0
votes
0answers
30 views

/etc/init.d/apache2 file is being log rotated

For the last 5 weeks, I have monitored some strange behavior. Every week at logrotate process time, the init script /etc/init.d/apache2 is being rotated as if it were a log file. The first week it ...