Excluding Logs
Containers and pods can be specifically included/excluded from having their logs collected and sent to DataSet. Unlike the normal log_config exclude option which takes an array of log path exclusion globs, Annotations simply support a Boolean true/false for a given container/pod. Both include and exclude are supported, with include always overriding exclude if both are set. e.g.
Annotation
log.config.scalyr.com/include: false
log.config.scalyr.com/exclude: true
CLI
(CLI Command Not Supported)
YAML
metadata: annotations: "log.config.scalyr.com/exclude": "true/false"
Comments
0 comments
Please sign in to leave a comment.