From a597775e4c706254cbed945272b5f20d2e6acbf1 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 23 Sep 2022 13:35:03 +0200 Subject: [PATCH] bin/taillog: +ulimit -n bin/taillog: More filters. --- bin/taillog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/taillog b/bin/taillog index b58d0e0..fa7906f 100755 --- a/bin/taillog +++ b/bin/taillog @@ -1,2 +1,3 @@ #! /bin/bash -tail -fn0 `(file $(find /var/log -name ntpstats -prune -o -type f -print)|grep -v 'data$'|sed 's/:.*//'|grep -v '^\(/var/log/squid/store.log\|/var/log/acpid\|/var/log/btmp\|/var/log/maillog\)$';echo "$*"|tr ' ' '\n')|sort -u` # |grep -v ': bio too big device md3 (248 > 240)$' +ulimit -n 65536 +tail -fn0 `(file $(find /var/log -name ntpstats -prune -o -type f -print)|grep -v 'data$'|sed 's/:.*//'|grep -v '^\(/var/log/squid/store.log\|/var/log/acpid\|/var/log/btmp\|/var/log/journal/.*\|/var/log/maillog\|/var/log/sa/\)$';echo "$*"|tr ' ' '\n')|sort -u` # |grep -v ': bio too big device md3 (248 > 240)$' -- 1.8.3.1