liveBook · Manning

Log

As explained in Google Anthos in Action

Logging is the recording of system and application events for analysis, troubleshooting, and auditing.

Logs record events from system services and application workloads. In Kubernetes operations, they help administrators investigate cluster activity and workload errors; access logging also supports security and observability in Anthos Service Mesh. section 5.1.4 section 4.5.4

Kubernetes logs differ by source and retrieval path:

  • System logs come from services such as kube-apiserver, etcd, kube-scheduler, and kube-controller-manager; application logs contain details from cluster workloads. section 5.1.4
  • Logs can be retrieved on demand from the Kubernetes API through the Connect Agent, which issues a kubectl logs command. This retrieval increases latency and can be useful for security requests. section 5.1.4
  • Pod output is written to the node. When the Google Cloud operations suite agent is enabled, logs are aggregated and forwarded to the Cloud Logging API. Metrics, by contrast, record observations such as memory use or requests per second. section 5.1.4

Migrated application logs

Migrate for Anthos can send workload-container logs to Cloud Logging. By default, it considers output written to stdout by init and the contents of /var/log/syslog. section 15.5

How Google Anthos in Action covers it

How deep it goes
Distinguishes log sources, retrieval, and forwarding paths, without detailing log formats or analysis procedures.
Examples
Uses Kubernetes service and workload logs, pod output, stdout, and /var/log/syslog as concrete sources.
What you can do after
Operate log retrieval through the Connect Agent and kubectl logs, and forward node logs to Cloud Logging with the operations suite agent enabled.
How it connects
Connects logs with Kubernetes, Cloud Logging, Anthos Service Mesh, and Migrate for Anthos.

Also explained in

Compare how 14 books explain log →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.