Log Collection
Kubernetes-output
By default, Usage Engine deployed in Kubernetes outputs logging to disk and console output. If persistent disk storage is enabled, the logs end up on the mounted shared disk. However, persistent disk is not always the desired log target, especially in a cloud environment where persistent data is typically accessed through services and APIs rather than as files. The console logs can be accessed through the "kubectl logs" command or from a Kubernetes dashboard. The buffer for storing the Kubernetes console logs is stored in memory only though and thus will be lost when a Pod terminates.
prereq
Before setting up log collection, ensure that Usage Engine was installed with JSON formatted logging enabled, as below:
log:
# Format can be "json" or "raw". Default is "raw"
format: json