grab only oven temperature logs

pull/59/merge
jbruce 2022-05-20 15:03:10 -04:00
rodzic 41c217dab8
commit 97a13e1a45
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -3,5 +3,6 @@
echo "----------------------------------------------"
echo "| Writing all kiln logs to ./kiln.logs.gz... |"
echo "----------------------------------------------"
zgrep --no-filename INFO /var/log/* 2>/dev/null|strings|sort|uniq|gzip >kiln.logs.gz
zgrep --no-filename "INFO.*oven: temp=" /var/log/* 2>/dev/null|strings|sed 's/^.*\(....-..-.. ..:..:..,... INFO oven: temp=\)/\1/'|sort|uniq|gzip > kiln.logs.gz
ls -la kiln.logs.gz