we are using gcloud logging read to read messages from a Cloud Run service. The command works but it exits once it reaches the end of file. How can we tell it to not exit and wait for new messages to appear in the log? similar to how tail -f
works:
-f The -f option causes tail to not stop when end of file is reached, but rather to wait for additional data to be appended to the input. The -f option is ignored if the standard input is a pipe, but not if it is a FIFO.
Use the command:
gcloud beta logging tail
To enable this feature: