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.
89
questions
0
votes
1
answer
32
views
What are the options to manage the size of /var/log/syslog of an embedded system
I have an embedded system (i.MX6) running a modified version of Ubuntu 18.04 LTS bionic stored on its SD card and I want to know how to manage /var/log/syslog file size.
I noticed that systemd journal ...
0
votes
0
answers
16
views
large number of strange samba log files not cleaned by logrotate
On my ubuntu 20.04.2 LTS I see a large number of log files with names like this:
log.2003_df_272d_9b00_810b_3c34_b13a_800c
log.2003_df_272d_9b00_30b7_2646_c9ca_36c9
These are obviously created by ...
0
votes
2
answers
64
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
0
answers
61
views
Logrotate syslog and mysql error
OS version: 20.04
When trying to manually logrotate, there are errors rotating syslog and mysql.
~$ sudo logrotate -f /etc/logrotate.conf
error: rsyslog:4 unknown unit 'e'
error: found error in /var/...
3
votes
1
answer
312
views
Ubuntu 20.04.3: nginx crashes with segfault
I have an Ubuntu box (20.04.3) on which nginx stopped already twice with a segfault:
Nov 16 00:01:23 documents-oo kernel: [2726316.050697] nginx[2579242]: segfault at 41 ip 00007fbf59548593 sp ...
0
votes
1
answer
103
views
what is the default value in logrotate.conf
In /etc/logrotate.conf
is user permission different between Ubuntu 20.04 and 18.04 releases?
#use the syslog group by default, since this is the owning group
#of /var/log/syslog.
su root syslog
or
#...
1
vote
1
answer
98
views
log rotation for /var/log
I got an alert that the root directory is running out of space. On inspection using ncdu i found that the /var/log folder was taking alot space. Then further inspection shows that syslog and kern.log ...
0
votes
0
answers
155
views
The size of log files is still big after logrotate on ubuntu 20.04
logrotate was setup on Ubuntu 20.04 to limit the besu log file size to 10MB, keep 4 weeks log with rotating weekly and delete the old log file. Here is the besu conf:
#for besu log
/home/log/besu/* {
...
0
votes
2
answers
44
views
How do I get the latest logrotate, which isn't yet in the apt repositories?
I'm on 20.04, which has logrotate 3.14.0. I need a later version which has important bugfixes.
This page shows that 20.04 has version 3.14.0, and this page shows that 21.04 has version 3.18.0 (the one ...
1
vote
1
answer
390
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 ...
0
votes
1
answer
64
views
Trouble getting logs to autorotate with logrotate
Ubuntu 20.04.2 LTS
Gnome 3.36.8
$ logrotate --version
logrotate 3.14.0
It's been impossible to get logs to rotate automatically once they reach a size of 125M. Here's the config file saved to /etc/...
1
vote
0
answers
600
views
Setting a size limit for current syslog
Based on other threads, the only way to set a size limit on current syslog (/var/log/syslog) seems to be via rsyslog which is a bit tricky. I ended up replacing the line below in /etc/rsyslog.d/50-...
0
votes
1
answer
81
views
Syslog start logging in the morning! why?
Hello I've a Ubuntu server 18.04 running. But the problem is syslog start logging at every morning not at 00:00 midnight!
Jan 5 06:25:03 localhost snmpd[810]: truncating integer value > 32 bits
...
0
votes
1
answer
145
views
Why My Logrotate Configurations Doesn't Work Correctly for MySQL-MariaDB?
I am using an MariaDB Galera 3-Cluster and I saw that the mysql logs on Node 2 grows up to 100gb and I decided to limited these logs that will not grow a lot. I used logrotate for that, so an file ...
1
vote
1
answer
1k
views
/var/log/syslog not getting rotated
I have a fresh install of ubuntu 20.04. I have set daily rotation in /etc/logrotate.d/rsyslog file with a maxsize of 1M but the /var/log/syslog and kern.log file keeps increasing. Here is the rsyslog ...