Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
460 views

Is there a way to run logrotate of a specific application's logs only at times other than midnight?

I put the file I set in the "logrotate.d folder". And I wanted to run the file only at 00:30 every day through "crontab -e". However, when I checked the next day, it was executed ...
john_smith's user avatar
-1 votes
2 answers
519 views

Bash script for Logrotate can't start in crontab

i have a simple bash script for execute a logrotate command which is the follow command: sudo logrotate -f /etc/logrotate.d/logfile When i set the bash script into crontab the script didn't execute, ...
rikorey's user avatar
1 vote
1 answer
2k views

Mysql logrotation doesn't work

I'm having trouble making Mysql log rotation working. I don't know why this is so complicated , even though I followed documentation and internet advice, still cannot make it work. I have enabled all ...
AlexP's user avatar
  • 133
2 votes
1 answer
2k views

Cannot run logrotate utility automatically from cron

I run sudo crontab -e and append the following line: * * * * * logrotate -f /etc/logrotate.d/adraw; touch /ADraw/Data/Logs/test.txt The file test.txt is successfully created, but I see no results of ...
Apogentus's user avatar
  • 253
1 vote
0 answers
576 views

syslog-ng leaving empty log files after rotation

Let me start by saying I am new to syslog-ng and logrotation and am doing this at home to learn. I have log files that are being sent to my syslog server from my router and are logging no problem ...
MyUbuntuUser7000's user avatar
1 vote
1 answer
3k views

How to enable a logrotation with Jenkins

I need to enable the logrotate service with Jenkins in order to rotate its log files (/var/log/jenkins/jenkins.log). So, I configured a script in /etc/logrotate.d with right permissions: /var/log/...
roghan's user avatar
  • 29
0 votes
0 answers
105 views

logrotate is unable to list the created files in linux

i created my logrotate in /etc/logrotate.d/rsyslog /var/log/pcapcapture/capture.log { maxsize 100k minsize 100k hourly ...
bhavya's user avatar
  • 1
1 vote
0 answers
1k views

Daily compress log files not working

This is the log file I am using to compress log files on a daily basis. /home/ubuntu/logs/server.log { daily missingok rotate 1 compress create dateext dateyesterday ...
cogitoergosum's user avatar
0 votes
1 answer
482 views

logrotate weekly archiving empties out daily files

My aim is to maintain 4 days' worth of log files so that on the fifth day, a zip file with all four log files is created. The four log files created so far are deleted. This is my logrotate.conf: /...
cogitoergosum's user avatar
2 votes
1 answer
1k views

How to configure logrotate in a default, most basic conf for an all-default system?

I have an all-default Ubuntu VPS machine with Nginx, for a few light WordPress sites with say up to 5 plugins, 10 webpages, 20 images each. So far I cleaned all default logs (or at least some of them)...
Arcticooling's user avatar
1 vote
0 answers
890 views

Log rotation is not working automatically

Trying to create log rotation, but it's not working automatically. write following code in .sh file and store in /etc/logratate.d/xxx: /var/log/xxx/*.log { daily missingok rotate 10 compress ...
Jason's user avatar
  • 11
1 vote
1 answer
52 views

logrotate does not produce any output

I set up a logrotate configuration file containing containing two entries. the file contains the following: /var/www/designer-24.com/var/log/* { daily missingok rotate 7 dateext ...
Nicolas El Khoury's user avatar
3 votes
1 answer
11k views

How to rotate a log file in ubuntu on size basis hourly?

/opt/variable/log/myapp.log { rotate 24 hourly maxsize 10k compress ifempty postrotate reload rsyslog > /dev/null 2> & 1 || true endscript } I have copied ...
ams's user avatar
  • 213
0 votes
2 answers
5k views

Logrotate is deleting my logs

I have this logrotate config which is not in /etc/logrotate.d /path/to/my/logfile.log { su root root daily maxage 365000 copytruncate dateext dateformat -%d.%m.%Y } I run it ...
Andrija Čehko's user avatar
0 votes
0 answers
3k views

Why logrotate is not running automatically in ubuntu 16.04?

I am on ubuntu 16.04 but from recent time I have seen complaints of very low system space. I tried to find and found that it was due to old log files so I find that the old files can be rotated as by ...
Gurjit's user avatar
  • 173
6 votes
3 answers
10k views

MySQL logrotate error

I'm new to Linux and have setup a VPS running Ubuntu 16.04 with postfix, dovecot and rouncube using mariadb for the database. It all seem to be working okay but I regularly receive the following email:...
Adam D's user avatar
  • 61
1 vote
1 answer
2k views

logrotate - no such file or directory

Every morning I wake up to this e-mail from the Cron Daemon: /etc/cron.daily/logrotate: error: error accessing /var/log/ejabberd: No such file or directory error: ejabberd:1 glob failed for /var/log/...
Alex's user avatar
  • 1,308
5 votes
1 answer
43k views

Why is logrotate not running automatically?

I have set up a Syslog-ng server with some filters to split certain traffic into different files. I modified the logrotate file located at /etc/logrotate.d/syslog-ng to rotate these files daily, but ...
John K.'s user avatar
  • 261
3 votes
0 answers
1k views

how to make logrotate.d daily rotate each day at 00:00 exactly

I've followed the method shown at https://askubuntu.com/a/24526/498355 to make daily logrotate.d rotate at exactly 00:00. I have 2 physical servers which ubuntu 16.04 with the same date and timezone. ...
cherouvim's user avatar
  • 215
4 votes
1 answer
6k views

How to change the day of the week Logrotate shifts the file when configured weekly?

I have following configuration which rotates all content of google folder weekly: /var/log/google/*.log { create 0777 www-data www-data weekly missingok rotate 90 ...
dragosrsupercool's user avatar
1 vote
1 answer
1k views

How do I identify which log is incorrectly rotated?

I'm receiving email prompts from two Ubuntu 14.04 servers around unusual logrotate behaviour. I don't have any packages installed which are not installed on other servers which don't exhibit this ...
Arronical's user avatar
  • 20.1k
1 vote
0 answers
805 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 ...
user413895's user avatar
27 votes
1 answer
46k 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 ...
user2136963's user avatar
24 votes
1 answer
24k 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?
Bryce's user avatar
  • 1,987
1 vote
1 answer
6k 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 ...
Khaled Zoabi's user avatar