All Questions
25 questions
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 ...
-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, ...
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 ...
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 ...
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 ...
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/...
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
...
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
...
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:
/...
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)...
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
...
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
...
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 ...
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 ...
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 ...
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:...
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/...
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 ...
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. ...
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
...
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 ...
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 ...
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 ...
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?
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 ...