[fix] Add jinja option, missing log dirs, compress option

This commit is contained in:
William Wernert
2020-10-06 17:18:39 -04:00
parent b64a91f13c
commit d84f85335e
3 changed files with 5 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ logrotate:
rotate 14
missingok
copytruncate
compress
create
extension .log
dateext

View File

@@ -8,6 +8,9 @@
/opt/so/log/kibana/*.log
/opt/so/log/elastalert/*.log
/opt/so/log/soctopus/*.log
/opt/so/log/curator/*.log
/opt/so/log/fleet/*.log
/opt/so/log/suricata/*.log
/opt/so/log/mysql/*.log
/opt/so/log/playbook/*.log
/opt/so/log/logstash/*.log

View File

@@ -202,6 +202,7 @@ commonlogrotateconf:
file.managed:
- name: /opt/so/conf/log-rotate.conf
- source: salt://common/files/log-rotate.conf
- template: jinja
- mode: 644
/usr/local/bin/common-rotate: