Removed unused st2web from logrotate. Also consolidated audit log rotations
@@ -4,15 +4,8 @@ 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
@@ -21,14 +14,7 @@ notifempty
}
## AUTH
-/var/log/st2/st2auth.log {
- daily
- rotate 5
- postrotate
- st2ctl reopen-log-files st2auth > /dev/null
- endscript
-}
-
+/var/log/st2/st2auth.log
/var/log/st2/st2auth.audit.log {
daily
rotate 5
@@ -38,14 +24,7 @@ notifempty
}
## API
-/var/log/st2/st2api.log {
- daily
- rotate 5
- postrotate
- st2ctl reopen-log-files st2api > /dev/null
- endscript
-}
-
+/var/log/st2/st2api.log
/var/log/st2/st2api.audit.log {
daily
rotate 5
@@ -55,14 +34,7 @@ notifempty
}
## Stream
-/var/log/st2/st2stream.log {
- daily
- rotate 5
- postrotate
- st2ctl reopen-log-files st2stream > /dev/null
- endscript
-}
-
+/var/log/st2/st2stream.log
/var/log/st2/st2stream.audit.log {
daily
rotate 5
@@ -118,13 +90,3 @@ notifempty
st2ctl reopen-log-files st2garbagecollector > /dev/null
endscript
}
-
-## WebUI
-/var/log/st2/st2web.log {
- daily
- rotate 5
- missingok
- postrotate
- st2ctl restart-component st2web > /dev/null
- endscript
-}
