Split out logrotate configs again
@@ -4,8 +4,15 @@ copytruncate
notifempty
## Rules engine
-/var/log/st2/st2rulesengine.log
/var/log/st2/st2rulesengine.audit.log {
+ rotate 5
+ size 10M
+ postrotate
+ st2ctl reopen-log-files st2rulesengine > /dev/null
+ endscript
+}
+
+/var/log/st2/st2rulesengine.log {
size 100M
rotate 5
postrotate
@@ -14,7 +21,14 @@ notifempty
}
## AUTH
-/var/log/st2/st2auth.log
+/var/log/st2/st2auth.log {
+ daily
+ rotate 5
+ postrotate
+ st2ctl reopen-log-files st2auth > /dev/null
+ endscript
+}
+
/var/log/st2/st2auth.audit.log {
daily
rotate 5
@@ -24,7 +38,14 @@ notifempty
}
## API
-/var/log/st2/st2api.log
+/var/log/st2/st2api.log {
+ daily
+ rotate 5
+ postrotate
+ st2ctl reopen-log-files st2api > /dev/null
+ endscript
+}
+
/var/log/st2/st2api.audit.log {
daily
rotate 5
@@ -34,7 +55,14 @@ notifempty
}
## Stream
-/var/log/st2/st2stream.log
+/var/log/st2/st2stream.log {
+ daily
+ rotate 5
+ postrotate
+ st2ctl reopen-log-files st2stream > /dev/null
+ endscript
+}
+
/var/log/st2/st2stream.audit.log {
daily
rotate 5
