taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 0de8f1df0cedfdbafe0d3d25f2f2c2500f91c5ba
parent e5afbde535aac614b14ed91c820262c84b28d86b
Author: Florian Dold <florian@dold.me>
Date:   Tue, 22 Oct 2024 14:41:53 +0200

regional currency diagnostics: limit log

Diffstat:
Mregional-currency/diagnose.sh | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/regional-currency/diagnose.sh b/regional-currency/diagnose.sh @@ -115,9 +115,11 @@ done SINCE="7 days ago" echo "analysing logs since $SINCE" +nlogs=20000 + for unit in ${all_units[@]}; do - num_warnings=$(journalctl -u "$unit" --since "$SINCE" | grep WARNING | wc -l) - num_errors=$(journalctl -u "$unit" --since "$SINCE" | grep ERROR | wc -l) + num_warnings=$(journalctl -u "$unit" --since "$SINCE" -n $nlogs | grep WARNING | wc -l) + num_errors=$(journalctl -u "$unit" --since "$SINCE" -n $nlogs | grep ERROR | wc -l) if [[ ( $num_errors -eq 0 ) && ( $num_warnings -eq 0 ) ]]; then continue fi