You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -57,23 +57,25 @@ The following log rotation policy is enabled by default in Redis Enterprise Soft
57
57
}
58
58
```
59
59
60
-
-`/var/opt/redislabs/log/*.log` - `logrotate` checks the files under the `$logdir` directory (`/var/opt/redislabs/log/`) and rotates any files that end with the extension `.log`.
60
+
-`${logdir}/*.log`: `logrotate` checks the files under the `$logdir` directory (`/var/opt/redislabs/log/`) and rotates any files that end with the extension `.log`.
61
+
62
+
-`${logdir}/cluster_wd.log.long_retention`: `cluster_wd.log` is copied to `cluster_wd.log.long_retention` before rotation. This copy is kept longer than usual, which is 30 days by default.
61
63
62
-
-`/var/opt/redislabs/log/cluster_wd.log.long_retention` - The contents of `cluster_wd.log` is copied to `cluster_wd.log.long_retention` before rotation, and this copy is kept for longer than normal (30 days).
64
+
-`maxsize 200M`: Rotate log files that exceed 200 MB.
63
65
64
-
-`size 200M` - Rotate log files that exceed 200 MB.
66
+
-`daily`: Rotate logs every day regardless of their size.
65
67
66
-
-`missingok` - If there are missing log files, do nothing.
68
+
-`missingok`: If there are missing log files, do nothing.
67
69
68
-
-`copytruncate` - Truncate the original log file to zero sizes after creating a copy.
70
+
-`copytruncate`: Truncate the original log file to zero sizes after creating a copy.
69
71
70
-
-`rotate 2000` - Keep up to 2000 (effectively infinite) log files.
72
+
-`rotate 10`: Save a maximum of 10 rotated log files. To keep effectively infinite log files, use `rotate 2000` instead.
71
73
72
-
-`compress` - gzip log files.
74
+
-`compress`: gzip log files.
73
75
74
-
-`maxage 7` - Keep the rotated log files for 7 days.
76
+
-`maxage 7`: Keep the rotated log files for 7 days.
75
77
76
-
-`notifempty` - Don't rotate the log file if it is empty.
78
+
-`notifempty`: Don't rotate the log file if it is empty.
77
79
78
80
{{<note>}}
79
81
For large scale deployments, you might need to rotate logs at faster intervals than daily. You can also use a cronjob or external vendor solutions.
0 commit comments