Push startup-script logs to a separate file in gcp
问题 In GCP, For ubuntu - startup-script logs automatically pushed to /var/log/Syslog we might miss those logs due to log rotation if required after a long duration. Is there a way to redirect these logs to some another log-file? My startup-script is a simple bash script with multiple commands and can't redirect the output of individual command to a file. 回答1: You can consider this solution: redirect outputs inside your startup-script to a dedicated startup-script.log file in /tmp directory