aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-10-25 14:40:02 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-10-25 14:41:02 +0300
commitffc3a71009cf12f4a5e94d5dff4d41582c23795b (patch)
treef93b38f2db981a8a6f312f20508027e1e43b1398 /templates
parent4e6327f2f7b825e1fbe27303744af735f7fe59f3 (diff)
Improve pylogsentinel.conf
Diffstat (limited to 'templates')
-rw-r--r--templates/usr_local_etc_pylogsentinel.conf.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/usr_local_etc_pylogsentinel.conf.j2 b/templates/usr_local_etc_pylogsentinel.conf.j2
index 5892a98..c169ade 100644
--- a/templates/usr_local_etc_pylogsentinel.conf.j2
+++ b/templates/usr_local_etc_pylogsentinel.conf.j2
@@ -3,7 +3,7 @@ state_dir = /var/run/pylogsentinel
max_block_size = 10M
[logs.standard]
-cmd = find / -type f -path '*/var/log/*' ! -name 'access.log' ! -name '*.bz2'
+cmd = find / -type f -path '*/var/log/*' ! -name '*.access.log' ! -name '*.bz2'
[logs.access]
paths = /usr/local/jails/containers/ingress/var/log/nginx/access.log
@@ -13,7 +13,7 @@ cmd = echo -e "---------\nMatched $RULE_ID in $FILE at line $LINE, context:\n\n$
[rule.error]
description = Error-like conditions
-pattern = /(error|fatal|exception|kill)/i
+pattern = /(error|fatal|exception|killed)/i
logs = standard
[rule.access]