Somehow I am puzzled by newsyslog.
Background/Situation:
I have some cronjob that runs every two minutes and (sometimes) produces output. I do not want receive a mail every two minutes, but once daily. So I thought I will use newsyslog for this job.
Crontab:
*/2 * * * *...
Hi!
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/var/log/nginx/access.log 644 50 500 * C /var/run/nginx.pid 30
Newsyslog for this configuration should make log files every 500 kilobytes. But...
Logfile rotation, which is handled by newsyslog, can be done based on 1) max size of file, 2) at certain time.
My questions is: how does it work when both the conditions are specified? I'd expect it'll rotate when any one condition is met. Is that correct?
But for example, in my newsyslog.conf...
Dear BSD Users
I’m looking for a way to get rid of “abandoned” logfiles.
We are using syslog-ng and are rotating the files with newsyslog
Each client has his own logfile where we get stuff from syslog-ng. The files are in /var/log/syslog-ng/cpe/<customer>.log
The newsyslog config line is...
Hello,
having searched but not found anything about munin and logrotation.
Situation as follows:
Munin update script is run by crontab @hourly.
Logrotation of nginx is done by newsyslog @T00
Right now I lose the loggings from 23 to 00 o'clock because the log rotations takes place before the...
Hello, there.
I'm trying to configure newsyslog to rotate PostgreSQL logs, but I ran into a problem: PostgreSQL can't be told to reopen its log files, unless by rebooting it, but I can't do that on a production server.
Under Linux, it is done using the copytruncate logrotate option, which...
Hello everyone,
How can I achieved delayed compression like the one existing in logrotate, here is my config (I did not find this in the man) :
/var/log/apache24/httpd-access.log 644 52 * @T04 J /var/run/httpd.pid 30
I wish to delay the compression by one day :
- Current log.
- Rotated...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.