there is no file in my bucket after VM creation. I’ve set startup script and metadata correctly.
It takes a while to create the file in the storage bucket. However, you can verify if the stackdriver agent is installed and presently running on the VM instance by executing the following command.
$ sudo service google-fluentd status
1. edit the startup script and remove the apt-get -yq upgrade line before using it
2. You need to add scope to the gce during creation (if using gcloud) as described here: