diff options
Diffstat (limited to 'roles/host/templates')
| -rw-r--r-- | roles/host/templates/etc_crontab.j2 | 4 | ||||
| -rw-r--r-- | roles/host/templates/usr_local_bin_pylogsentinel-batch-email.sh.j2 | 2 | ||||
| -rw-r--r-- | roles/host/templates/usr_local_etc_pylogsentinel.conf.j2 | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/roles/host/templates/etc_crontab.j2 b/roles/host/templates/etc_crontab.j2 index a78c105..0e94b00 100644 --- a/roles/host/templates/etc_crontab.j2 +++ b/roles/host/templates/etc_crontab.j2 @@ -28,8 +28,8 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin # Run pylogsentinel */10 * * * * root python -m pylogsentinel -# Run pylogsentinel batch job once a day -5 6 * * * root /usr/local/bin/pylogsentinel-batch-email.sh +# Run pylogsentinel batch job every Monday +5 6 * * 1 root /usr/local/bin/pylogsentinel-batch-email.sh # Update ports trees nightly 0 2 * * * root /usr/local/bin/update-ports quarterly >>/var/log/update-ports.log 2>&1 diff --git a/roles/host/templates/usr_local_bin_pylogsentinel-batch-email.sh.j2 b/roles/host/templates/usr_local_bin_pylogsentinel-batch-email.sh.j2 index eebf1e7..83e2996 100644 --- a/roles/host/templates/usr_local_bin_pylogsentinel-batch-email.sh.j2 +++ b/roles/host/templates/usr_local_bin_pylogsentinel-batch-email.sh.j2 @@ -1,6 +1,6 @@ #!/bin/sh -FILE=/tmp/pylogsentinel.daily +FILE=/var/run/pylogsentinel.weekly if [ ! -f "$FILE" ]; then echo "Nothing to do" diff --git a/roles/host/templates/usr_local_etc_pylogsentinel.conf.j2 b/roles/host/templates/usr_local_etc_pylogsentinel.conf.j2 index cf24b20..a941c13 100644 --- a/roles/host/templates/usr_local_etc_pylogsentinel.conf.j2 +++ b/roles/host/templates/usr_local_etc_pylogsentinel.conf.j2 @@ -3,7 +3,7 @@ state_dir = /var/run/pylogsentinel max_block_size = 10M [logs.standard] -cmd = /usr/local/bin/fd -t f -E 'access.log' -E 'syncthing.log' '^[a-zA-Z-_]+(\.log|\.txt)$' /var/log /usr/local/jails/containers/*/var/log +cmd = /usr/local/bin/fd -t f -E 'access.log' -E 'syncthing.log' -E '*netdata/health.log' '^[a-zA-Z-_]+(\.log|\.txt)$' /var/log /usr/local/jails/containers/*/var/log [logs.arr] cmd = /usr/local/bin/fd -t f '^[a-zA-Z-_]+(\.log|\.txt)$' /usr/local/jails/containers/dl/usr/local/*/logs @@ -12,7 +12,7 @@ cmd = /usr/local/bin/fd -t f '^[a-zA-Z-_]+(\.log|\.txt)$' /usr/local/jails/conta paths = /usr/local/jails/containers/ingress/var/log/nginx/access.log [action.default] -cmd = echo -e "---------\nMatched $RULE_ID in $FILE at line $LINE, context:\n\n$CONTEXT\n" >> /tmp/pylogsentinel.daily +cmd = echo -e "---------\nMatched $RULE_ID in $FILE at line $LINE, context:\n\n$CONTEXT\n" >> /var/run/pylogsentinel.weekly [rule.error_std] description = Error-like conditions |
