I have a custom backup process, that at the end produces a log file.
I would like to send the log to stackdriver, and for that I am doing:
gcloud beta logging write log "!content!"
pause
Where content is a variable containing the entire file content.
I can't use any other language other then batch for this, and this is not working.
It doesn't even pause at the end.
If I do:
gcloud beta logging write log "Could not locate %filename%" --severity=ERROR
It works. so probably it is the file size (15MB) or the fact that it is multiple lines.
How can I log a log file with stackdriver cli?