I need to find logs between two timestamps using stackdriver CLI. I used the below command.
gcloud beta logging read "timestamp>=\"2017-02-19T00:00:00Z\" AND timestamp<\"2017-03-14T00:00:00Z\""
But its giving me the error:
The filename, directory name, or volume label syntax is incorrect.
Here is my gcloud version details
The above answer doesn't seem to work anymore. Here's the new command.
gcloud logging read 'receiveTimestamp>="2019-08-08T21:00:00Z" AND receiveTimestamp<="2019-08-08T22:00:00Z"'
Actually, this is simpler. The escape characters has been removed along with the double "double quotes". :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With