Annotations - Pod Log Configuration
Configuring the monitoring of individual Pod logs is achieved through Annotations.
This pertains to how logs from specific pods are handled by the Agent. The Agent examines annotations on each pod, and for any annotation that begins with the prefix log.config.scalyr.com/, it extracts the entries (minus the prefix) and maps them to the log_config stanza for that pod's containers.
The following log_config fields can be configured via pod annotations and behave in the same way as specified in the main Scalyr Agent reference:
- parser
- attributes
- sampling_rules
- rename_logfile
- redaction_rules
However, the following log_config fields behave differently when configured via k8s annotations:
- exclude (see "Excluding Logs" below)
- lineGroupers (not supported at all)
- path (the path is always fixed for k8s container logs)
Comments
0 comments
Please sign in to leave a comment.