Colleagues, please tell me, is it possible to configure newsyslog so that it automatically transfers old, compressed fragments of log files to a separate directory or directories? And there he rotated them.
For a number of reasons, I have to store old files for a fairly long period in the directory with nginx logs. There are quite a lot of virtual sites, each one writes at least two files. Even finding the required log in /var/log/nginx is not very easy. Is it possible to remove, for example, old files in /var/log/nginx/backup, but retain the functionality of rotating them?
Thanks in advance for your recommendations,
Ogogon.
For a number of reasons, I have to store old files for a fairly long period in the directory with nginx logs. There are quite a lot of virtual sites, each one writes at least two files. Even finding the required log in /var/log/nginx is not very easy. Is it possible to remove, for example, old files in /var/log/nginx/backup, but retain the functionality of rotating them?
Thanks in advance for your recommendations,
Ogogon.