From d547fe3c208fc0c1e36ba95ceae0eed57ca91145 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 21 Aug 2021 15:14:45 +0900 Subject: [PATCH] Tweak production syslog configuration --- production/mempool-restart-all | 5 +++-- production/syslog.conf | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/production/mempool-restart-all b/production/mempool-restart-all index e68564ca3b2..e1867a77aa0 100755 --- a/production/mempool-restart-all +++ b/production/mempool-restart-all @@ -1,7 +1,8 @@ #!/usr/bin/env zsh +HOSTNAME=$(hostname) -echo restarting all mempool backends | wall -echo restarting all mempool backends | logger -t mempool -p local7.notice +echo restarting mempool backends | wall +echo "${HOSTNAME} restarted mempool backends" | /usr/local/bin/keybase chat send --nonblock --channel general mempool.devops ps uaxw|grep 'dist/index'|grep -v grep|grep -v services|awk '{print $2}'|xargs -n 1 kill exit 0 diff --git a/production/syslog.conf b/production/syslog.conf index 1f33ce34362..3bc6f772b6b 100644 --- a/production/syslog.conf +++ b/production/syslog.conf @@ -1,4 +1,4 @@ -local7.>=notice |/usr/local/bin/sudo -u mempool /usr/local/bin/mempool-logger ops +local7.>=notice |/usr/local/bin/sudo -u mempool /usr/local/bin/mempool-logger general local7.info |/usr/local/bin/sudo -u mempool /usr/local/bin/mempool-logger node100 local7.info /var/log/mempool local7.* /var/log/mempool.debug