Replies: 1 comment
-
Use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have tried to configure log rotation for nats-server on one of my cluster nodes using
logrotate
, below is my nats logrotate config:and tested it in dry and force mode with below commands:
sudo logrotate -d /etc/logrotate.d/nats
sudo logrotate -f /etc/logrotate.d/nats
what it does is, compresses all existing logs and keep the old logs with size zero and compressed files.

what I need is to delete the older than on day files and compress today's logs.
any idea ?
Beta Was this translation helpful? Give feedback.
All reactions