logrotate Questions

8

Solved

Is it possible to run one iteration of logrotate manually without scheduling it on some interval?
Chateau asked 22/1, 2010 at 14:14

6

I'm currently trying to work out a method of tidying up Oracle Recover log files that are created by Cron... Currently, our Oracle standby recover process is invoked by Cron every 15mins using th...
Mere asked 13/2, 2013 at 16:55

3

Solved

Trying to use logrotate and I get the following error when I run the log rotate script for a particular definition in logrotate.d error: error creating state file /var/lib/logrotate/status: Permi...
Polymerization asked 25/5, 2012 at 21:19

0

I was wondering what are my options when it comes to doing logrotate for processes which never close their file descriptors. I am aware of the "restart the service" and copytruncate option. However...
Jejune asked 18/2, 2017 at 16:25

2

What are the best practices for implementing a file writer/logger in Java that is compatible with logrotate? The goal would be allow logrotate to be used for all log management, instead of using bu...
Commonweal asked 28/6, 2011 at 21:17

2

in last days i get daily mail from cron's logrotate task: /etc/cron.daily/logrotate: gzip: stdin: file size changed while zipping How can I fix it? Thanks, Gian Marco.
Barometrograph asked 1/7, 2015 at 7:45

1

Solved

I am trying to redirect the output of a continuously running program to a file say error_log. The command I am using looks like this, where myprogram.sh runs continuously generating data and writ...
Sophister asked 23/12, 2016 at 19:24

2

I would like to use Monolog in symfony2 application for logging, but my question is how can I split the file every day instead of appending to the same file? I would like my log file to be somthin...
Candicandia asked 18/9, 2013 at 16:7

1

I am newer to logrotate. when the configure comes to the property "dateformat",it seems that logrotate doesn't support strftime "%H" . here is the config: { daily rotate 2 size 3M missingok n...
Westnorthwest asked 30/6, 2015 at 8:15

3

I am trying to enable the log rotation for jenkins. Because the log file occupied more memory space. Is there any plugins or method to do it?
Cangue asked 24/7, 2015 at 12:47

1

I've recently set up the following logrotate job: /var/log/app.*.log { daily rotate 7 copytruncate nocompress dateext } I've found that when I go to view my log files, they start with some ...
Armin asked 6/9, 2013 at 0:25

1

I want to configure logrotate to handle /var/log/apache2/access.log separately from all other log files written to /var/log/apache2. Without specifying all the other logs by name explicitly, is the...
Bambi asked 29/5, 2014 at 0:24

2

Solved

I use forever to launch my nodeJs server and I choose the log file : forever -l /home/api/log/api_output.log start server.js I use logrotate to move logfile every day (like advise here : NodeJS/F...
Weatherford asked 18/4, 2014 at 10:17

2

Is it possible to use dateext and rotate options at the same time? config must look like this: /var/log/verybig.log { monthly size=100M dateext dateformat .%Y%m rotate 5 create missingok ...
Demagogue asked 15/9, 2014 at 10:18

2

Solved

Python has its own RotatingFileHandler which is supposed to automatically rotate log files. As part of a linux application which would need to rotate it's log file every couple of weeks/months, I a...
Offshoot asked 17/3, 2015 at 16:34

1

I enabled the error_log = /var/log/php5-fpm.log under /etc/php5/fpm/php-fpm.conf on my ubuntu 12.04 running nginx and php5-fpm. But I noticed that php5-fpm.log does not logrotate. I tried to under...
Scandal asked 14/8, 2014 at 14:6

1

Solved

I'm writing my own logrotate configuration for some web application: /home/me/public_html/logs/*.log { daily missingok rotate 15 compress delaycompress notifempty create 0660 me www-data n...
Junna asked 30/1, 2015 at 10:33

2

I tried to set up a log rotation of logs files located at /tmp/hr_logs/. For setting up, I used logrotate in linux and I'm able to rotate it on daily basis using the following config in my /e...
Gymkhana asked 25/8, 2014 at 11:37

2

Solved

When I run tail -f for a log file, logrotate rotate it but tail -f did not stop. It continue show logs in new file. After that I try manually; mv my.log my.log.2 touch my.log echo "test text" >...
Dislocate asked 23/5, 2014 at 6:58

2

Solved

ProFTPD on Ubuntu is being killed unexpectedly. Log message: $ tail /var/log/proftpd/proftpd.log.1 ... ... ProFTPD killed (signal 15) ... ProFTPD 1.3.5rc3 standalone mode SHUTDOWN Diagnos...
Ayacucho asked 14/5, 2014 at 23:14

2

I have a custom application (myApp) which is writing logs to the file '/var/log/myApp'. I can see the logs being written and it works fine. Now I am trying to setup logrotate for this file and for ...
Proceed asked 30/6, 2011 at 19:47

2

Solved

I'm running php5 FPM with APC as an opcode and application cache. As is usual, I am logging php errors into a file. Since that is becoming quite large, I tried to configure logrotate. It works, bu...
Rath asked 3/1, 2013 at 19:30

2

I have the following logrorate config for my iptables: /var/log/iptables.log { daily missingok rotate 3 compress notifempty delaycompress postrotate /usr/sbin/service rsynclog restart >...
Niersteiner asked 8/3, 2014 at 9:30

1

Solved

After force running logrotate, my app keeps writing to my_app.log.1 (the old log that should be archived later) instead of my_app.log. This make my_app.log an empty file, therefore logrotate runs ...
Chingchinghai asked 5/3, 2014 at 9:40

1

Solved

I have set up the configuration file for uwsgi logrotate. When I tested it, it seemed it will work. logrotate -dvf /etc/logrotate.d/uwsgi reading config file /etc/logrotate.d/uwsgi reading config...
Lakesha asked 11/12, 2013 at 3:50

© 2022 - 2024 — McMap. All rights reserved.