only the last hours

This commit is contained in:
Sebastian
2025-03-18 10:24:38 +01:00
parent 527a8760cb
commit dadca852fd

View File

@@ -5,4 +5,4 @@ if [ -z "$1" ] || [ ! -f "/root/rpc/$1.yml" ]; then
exit 1
fi
docker compose logs -f $(cat /root/rpc/$1.yml | yaml2json - | jq '.services' | jq -r 'keys[]' | tr '\n' ' ')
docker compose logs -f --since "2h" $(cat /root/rpc/$1.yml | yaml2json - | jq '.services' | jq -r 'keys[]' | tr '\n' ' ')