I’ve set up and torn down the challenge GCS and GCE a couple of times (using scripts). The first time I forgot to give the correct permissions to the service account but, on each subsequent occasion, the log file has appeared in the bucket. However, streaming the logs in Stackdriver was only effective (i.e., all events were captured) on the first run. Since then, each run has yielded only four events. I have SSHed into the VM and catted the syslog and the events are all there. Does anyone have ideas why the logging only showed up properly on the first occasion?
I have a guess that the answer to your question appears at 4:31 in this demo. 🙂
But if you want to try to figure it out with fewer details, I’d suggest that you think about and double-check what it was that you changed between your first attempt (when SD was working but GCS was not working) and second attempt (when GCS started working but SD was no longer working).
And if it turns out my guess is wrong, then please let us know!