simplify log fetching

This commit is contained in:
Daniel Micay 2023-12-24 20:21:06 -05:00
parent 15a2fa132f
commit ae0373cc38

4
count
View File

@ -15,10 +15,10 @@ mkdir logs
for host in ${hosts_releases[@]}; do for host in ${hosts_releases[@]}; do
echo obtaining logs from $host echo obtaining logs from $host
ssh $host journalctl -u nginx | grep ' 200 ' >> logs/merged.log ssh $host journalctl -u nginx -g ' 200 ' >> logs/merged.log
done done
grep Dalvik/ logs/merged.log | grep ' 200 ' > logs/merged-device.log grep Dalvik/ logs/merged.log > logs/merged-device.log
echo echo
echo update checks echo update checks