Questions tagged [logrotate]

A Linux tool for log files management. Do not use this tag for general questions about usage of logrotate and troubleshooting, but for programming questions related to logrotate.

Quoting the man page:

logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.

469 questions
-2
votes
1 answer

Modify existing logrotate file using an ansible playbook

I'm looking to create an ansible playbook to rotate syslogs and daemon.logs in our environment. I'm not looking to use ansible-galaxy roles. Ideally, i would need to just modify the existing rsyslog file in /etc/logrotate.d and add…
-2
votes
1 answer

Manually running crontab cron.hourly returns missing file error

I've been trying my best to understand how crontab and logrotate work together, and I'm going around in circles. I have taken the line from /etc/crontab and run: $ sudo run-parts --report /etc/cron.hourly /etc/cron.hourly/logrotate: run-parts:…
datacubed
  • 189
  • 1
  • 10
-2
votes
1 answer

logrotate: daily rotation didn't work even though i used -f option

Here's the logrotate config file under /etc/logrotate.d/mylog /var/www/www.mysite.com/logs/* { daily rotate 365 compress delaycompress missingok notifempty create 0664 apache apache } I set…
The One
  • 2,261
  • 6
  • 22
  • 38
-2
votes
1 answer

Logrotate without Admin or sudo Access - linux

I don't have logrotate installed in my linux, I need to use logrotate in my local without having sudo permissions or root permissions. Kindly suggest me a solution.
Syed
  • 61
  • 2
  • 10
1 2 3
31
32