aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-07-27 09:39:44 +0300
committerJan Tuomi <jan@jantuomi.fi>2026-07-27 09:39:44 +0300
commit0319c82fa4b93a9558f28b750ab948e76fd9251d (patch)
treec27f963d9fecd2c45f72b243b0ccf3ab6838a2f4
parent13a4fbe07992809b76d4679f173da59a746f0d4b (diff)
Fix pylogsentinel-batch-email.sh max email size
-rw-r--r--roles/host/templates/usr_local_bin_pylogsentinel-batch-email.sh.j22
1 files changed, 1 insertions, 1 deletions
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 d28efd9..eebf1e7 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
@@ -8,7 +8,7 @@ if [ ! -f "$FILE" ]; then
fi
echo "Sending email"
-cat "$FILE" | mail -s "pylogsentinel alert batch" root
+cat "$FILE" | head -n 5000 | mail -s "pylogsentinel alert batch" root
echo "Removing batch file"
rm "$FILE"