logrotate Questions
4
Solved
I've a docker container running nginx which is writing logs to /var/log/nginx
Logrotate is installed in the docker container and the logrotate config file for nginx is set up correctly. Still, the ...
Arterial asked 20/9, 2017 at 13:52
5
I looked at logrotate.conf examples and everything in my /etc/logrotate.d directory. Nowhere was I able to find documentation on variables in these files.
I am trying to create a config file for r...
Femineity asked 19/11, 2009 at 9:9
3
I have a logrotate config on ubuntu 16.04 which is meant to rotate my logs to gz daily. The config is like so:
/opt/dcm4chee/server/default/log/*.log {
daily
missingok
rotate 5
compress
notif...
3
logrotate is not rotating my logs
To verify that the logfile is not empty:
# ls -laFh /var/log/cisco-meraki.log
-rw-r----- 1 root adm 2.8G Sep 5 13:23 /var/log/cisco-meraki.log
Configuration (/...
3
Is there a way using logrotate I can rotate entire directory and compress it instead of just the files in a particular directory? I tried experimenting using the config below but that does not work...
4
I created a program.conf that logrotate my logs hourly in an EC2 instance. the logrotate works well when i force it command (by sudo logrotate program.conf --verbose --force) but it doesn't run eac...
Zadazadack asked 28/5, 2019 at 7:41
3
Solved
we use logrotate and it runs daily ... now we have had some situations where logs have grown significantly (read: gigbaytes) and killing our server. So now we would like to set a maximum filesize t...
4
I searched through the net but didn't get the concrete answer or example of "how to use log rotation with Gunicorn?".
It would be great if someone provide an example.
4
Solved
I am trying to use logrotate to rotate out tomcat's catalina.out automatically on a daily basis even though I can manually call logrotate and it works fine. I am using I have tried every solution o...
Kaylakayle asked 11/12, 2018 at 17:52
5
Solved
Last week I found a problem on my server, because the disk usage was 100%, and I found out apache had created a huge error.log file of 60GB. I changed then the LogLevel to emerg, but after one week...
1
I am running a k8 cluster with 8 workers and 3 master nodes. And my pods are evicting repetively with the ephemeral storage issues.
Below is the error I am getting on Evicted pods:
Message: The nod...
Charqui asked 29/7, 2021 at 6:36
2
Nginx doesn't have native log rotation, so an external tool, such as logrotate, is required. Nginx presents a challenge in that the logs have to be reopened post rotation. You can send a USR1 signa...
2
Solved
I want logrotate to copy and truncate log file and use olddir on different physical disk. According to manual, olddir can't be on different physical disk because default behaviour of logrotate is t...
4
Solved
I haven't found a solution to purge old tomcat or jboss logs or any other timestamped logs: catalog.log./server.log.. Basically these logs are rotated by jboss as:
server.log, server.log.20131201, ...
Resurrectionist asked 9/1, 2014 at 8:30
3
I'm running Rails 5 on Ubuntu 14.04. Is there a way to rotate my logs without relying on the Linux logrotate system? I have this set up ...
myuser@myapp:~$ cat /etc/logrotate.d/myapp
/home/rails/m...
Perretta asked 31/10, 2017 at 21:16
11
I am trying to configure logrotate in RHEL for tomcat6 logs. Currently, logrotate works fine for catalina.out log, it is rotated and compressed properly.
The problem is with the files with date in...
2
I tried to configure logrotate to keep the date and the extension of the log being rotated:
With the current configuration, the file:
/var/www/redmine/log/production.log
Is logrotated in :
...
1
Solved
error: Ignoring /etc/logrotate.conf because it is writable by group or others
I got this error from my crontab log
4 -rw-r--r-- 1 root root 520 Mar 27 12:15 logrotate.conf
I am given 644 for...
Disembark asked 30/4, 2019 at 6:44
4
So I do logging.config.fileConfig to setup my logging from a file config that has console and file handler. Then I do logging.getLogger(name) to get my logger and log. At certain times I want the f...
Tempt asked 13/7, 2014 at 3:59
1
Solved
Deployed my laravel application few months ago, and recently found out that my application was unable to write to log because my disk was full. When i checked i found out that the laravel.log...
Tabu asked 9/2, 2019 at 21:23
3
Solved
I am writing a Linux daemon that writes a log. I'd like the log to be rotated by logrotate. The program is written in C.
Normally, my program would open the log file when it starts, then write ent...
6
I added two scripts in "logrotate.d" directory for my application logs to be rotated.
This is the config for one of them:
<myLogFilePath> {
compress
copytruncate
delaycompress
dateext
m...
Carpospore asked 27/3, 2013 at 5:49
2
in the logrotate manpage, they say:
"Normally, logrotate is run as a daily cron job".
Does that mean that logrotate uses cron (or is executed by cron)?
If so, does that mean that if I don't confi...
2
I am using logrotate version 3.12.3. How do I tell logrotate to exclude files that are already rotated/compressed?
For example, if I am rotating all files in /var/log as
"/var/log/*" {
compress
...
1
CentOS v.7
Logrotate v.3.8.6
I set logrotate to rotate when file reaches 5M but it ignores it, if I add daily it will rotate daily regardless of size, i tried with size, minsize and maxsize all ...
Quire asked 19/12, 2017 at 13:50
1 Next >
© 2022 - 2024 — McMap. All rights reserved.