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
0answers
22 views

Log rotate returns 1 weekly - how do I debug this?

I'm trying to understand why logrotate returns 1 each week: run-parts: /etc/cron.daily/logrotate exited with return code 1 Initially the log didn't give me any output at all. I've since switched on ...
1
vote
0answers
37 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
81 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
31 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 ...
1
vote
1answer
502 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 ...
1
vote
0answers
42 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
1answer
258 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
0answers
49 views

Logrotate throws a SQUID4 error

I am using squid3, on my Ubuntu 12.10 server, for some months now. I never had problems like that until 4 days ago. Since then I get this mail every day: >Topic: Cron: test -x /usr/sbin/anacron || ...
0
votes
1answer
617 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 ...
3
votes
2answers
1k 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 ...
0
votes
2answers
312 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 ...
2
votes
1answer
2k 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
4k 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 ...
11
votes
1answer
11k 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 ...