Saturday, February 3, 2024

Managing log files on ubuntu

 1. use /var/log location

2. have logroate.d/ conf file

/var/log/gunicorn/*.log {

  rotate 1

  weekly

  copytruncate

  dateext

  compress

  missingok

  notifempty

}


use copytruncate option


No comments:

Post a Comment