Cette page n'est pas encore disponible en français, sa traduction est en cours. Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
There are two ways to collect logs from containers running in Kubernetes:
Through the Docker socket.
Through the Kubernetes log files.
Datadog recommends using the Kubernetes log files approach when you are either not using Docker, or are using more than 10 containers per pod.
Datadog also recommends that you take advantage of DaemonSets to automatically deploy the Datadog Agent on all your nodes.
Otherwise, to manually enable log collection from one specific node, add the following parameters in the datadog.yaml:
Use Autodiscovery with Pod Annotations to configure log collection to add multiline processing rules, or to customize the source and service attributes.