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

0
votes
1answer
26 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
0answers
22 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
12 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 ...
2
votes
3answers
278 views

Nginx logrotate logs

I am running Ubuntu 15.04 and have a standard installation of nginx (apt-get install nginx) running. Everything is running fine but I notice that the nginx logs are being rotated but nginx carries on ...
1
vote
0answers
31 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
25 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 ...
2
votes
1answer
73 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: ...
1
vote
1answer
125 views

Can logrotate suffer race conditions?

I have a PHP application that can generate quite a lot of log information. I'd like to use logrotate to make sure these logs don't get out of hand over time. However, I'm concerned about race ...
0
votes
1answer
145 views

What exactly does logrotate do to apache log files? (apache 2.4 - ubuntu 14.04)

Other than a couple of basic VHOST's, I have default apache and apache logging configuration. Whenever I try to view my apache log files (error.log, access.log) I see that these files keep getting ...
0
votes
0answers
148 views

tracking down possible file system corruption issue with f2fs

I am investigating a potential file system corruption issue running f2fs on an ARM 7 device with an Linux 3.12/ Ubuntu 14.04 stack on top. So, the symptoms of the issues are as follows: The ubuntu ...
2
votes
0answers
3k 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 ...
0
votes
1answer
803 views

What schedules logrotate?

I'm working on the program which creates a big log file. I want to handle it with logrotate. This is a configuration I put to /etc/logrotate.d/: /var/log/myproject.log { hourly maxsize 1 rotate ...
0
votes
1answer
114 views

Logrotate: Using multiple criteria for rotating

How can I set a rotating policy based on a disjunction of size and frequency criteria. I have tried the following: "/var/log/uwsgi/*/*.log" { ... size 400M daily rotate 14 .. } However, ...
0
votes
1answer
659 views

Logrotate: run every N hours

Consider a server which generates extensive logging, which are archived using logrotate and bz2: "/var/log/uwsgi/*/*.log" { copytruncate daily rotate 14 compress delaycompress missingok ...
4
votes
0answers
319 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 ...
0
votes
3answers
514 views

How to prevent logs from getting too big?

I have a cronjob that runs some Python scripts and they generate massive log file. How do I prevent them from getting so big? It'd be perfect if the file was deleted once it hit a certain size. ...
0
votes
2answers
59 views

How can I know how many archived logs are saved?

In /var/log/apt, I am seeing: $ /var/log/apt $ ls -l total 100 -rw-r--r-- 1 root root 3343 Feb 14 22:34 history.log -rw-r--r-- 1 root root 2156 Jan 31 06:03 history.log.1.gz -rw-r--r-- 1 root root ...
2
votes
2answers
5k views

Log files are taking too much space and I can't delete\clear them

After using Ubuntu for 2.5 months, my /var directory reached around 37 GB or RAM while my / directory is all 50 GB or RAM and the rest of space is for my /home. I found that the following files are ...
2
votes
1answer
317 views

Configuring logrotate without root access (per user log rotation)

How best can logrotate be configured, on a per-user basis, to rotate files in the home directory of the user, under control of a per-user crontab -e?
1
vote
2answers
2k views

Purpose of “postrotate invoke-rc.d rsyslog rotate” when logrotating, and is this command outdated?

When using logrotate to keep log files rotating, I have seen postrotate invoke-rc.d rsyslog rotate > /dev/null endscript I know postrotate makes bash execute the following ...
0
votes
1answer
1k 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 ...
4
votes
2answers
3k views

Which script rotates /var/log/auth.log?

I cannot figure out where /var/log/auth.log is rotated. I found the file /var/log/auth.log.2013-09-16 on my system, which contains log entries previously found in /var/log/auth.log. Where does that ...
1
vote
3answers
560 views

tail stops displaying in case of a log rotation

I have to tail the log of a server (servicemix) and the log rotation is enabled. As soon as the rotation happens, tail stops displaying. I did some investigations and it is a bug in Debian : Debian ...
4
votes
1answer
4k views

How can I configure logrotate to copy/SSH apache log files

I'm working on an apache logs analyser, it requires the apache log files to be imported into a directory for processing. I cannot simply point it to the apache logs directory as it imports each file ...
1
vote
1answer
6k views

How To rotate syslog daily?

I want to rotate my syslog daily... How do I do this? How to check whether log rotate is working? How to make it run daily? By default, does Ubuntu Server run logrotate daily? Or do I have to set it ...
1
vote
3answers
2k views

how to change file permission of a file permanently that is set back to default on boot

I have a file /var/logs/apache2/error.log. And every time I boot, Its file permission is changed to default (unwritable) by the system. So, i have to run chmod command every time i boot-up. How to ...
13
votes
1answer
17k views

Specify the time of daily log rotate

I noticed that daily log rotations which are listed under /etc/logrotate.d/ are executed in the morning around 6:40 am. This is clear from the beginning and ending of the log files. Can I customize ...