6

I have a running Kubernetes cluster that aggregates it's logfiles in stackdriver and would like to tail the aggregated logs on the command line. But so far I am only able to view the json stream float by in the web interface or fetch historic logging data with a command like gcloud beta logging read 'resource.type="container" jsonPayload.service:("my-service") timestamp >= "2017-06-22T16:00:00+02:00"' --format=json.

Is there no way in GCE for me to build an aggregated real time view of the current log entries, like you would get from a tail -f?

  • You can stream logs from the GCE VM instances by installing the stackdriver logging agent on the GCE VM instances. Google container engine does not require this agent. Instructions are available at this link. Once installed, you will be able to stream the aggregated VM instances logs real-time similar to container engine logs you already been able to stream. Let me know if it helps, if not add more information for the use case. – N Singh Aug 23 '17 at 18:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.