Is it not possible to watch the tail of a particular log on the terminal command line using gcloud logging read
command? I'm looking for something akin to the well known tail -f
invocation on standard linux. I can't find any documented parameter which allows it. The web console provides a play button feature which does exactly this, but when I leave it running for more than 10 minutes the whole tab becomes unresponsive and it feels like it will crash the whole browser.
I've got a decent log filter that I want to "watch" on my terminal, and not in my Chrome browser. However the watch
command doesn't read output from gcloud command, it just sits there when I try the watch -n 30 gcloud logging read ...
invocation.
Thoughts, suggestions are most welcome.
You can now live tail logs using gcloud alpha logging tail
command. This is a low-latency streaming API to tail your logs directly from Logging. You can learn more in the following pages: