Merge remote-tracking branch 'remotes/origin/dev' into feature/suripillar

This commit is contained in:
m0duspwnens
2020-06-26 13:09:15 -04:00
20 changed files with 242 additions and 19 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
# Gzip the eve logs
find /nsm/suricata/eve*.json -type f -printf '%T@\t%p\n' | sort -t $'\t' -g | head -n -1 | cut -d $'\t' -f 2- | xargs nice gzip
# TODO Add stats log
+15
View File
@@ -71,6 +71,21 @@ surirulesync:
- user: 940
- group: 940
surilogscript:
file.managed:
- name: /usr/local/bin/surilogcompress
- source: salt://suricata/cron/surilogcompress
- mode: 755
/usr/local/bin/surilogcompress:
cron.present:
- user: suricata
- minute: '17'
- hour: '*'
- daymonth: '*'
- month: '*'
- dayweek: '*'
suriconfigsync:
file.managed:
- name: /opt/so/conf/suricata/suricata.yaml