---
title: The Docker daemon log level should be set to 'info'
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > The Docker daemon log level should be
  set to 'info'
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# The Docker daemon log level should be set to 'info'
Classification:complianceFramework:cis-dockerControl:2.3 
## Description{% #description %}

The Docker daemon should log at the `info` level.

## Rationale{% #rationale %}

At `info`, the daemon logs the events worth keeping for an investigation, without the volume and the sensitive detail of `debug`.

## Audit{% #audit %}

Look for a log level on the dockerd command line and in `daemon.json`:

```bash
ps -o args= -C dockerd
grep -E '"(log-level|debug)"' /etc/docker/daemon.json
```

Datadog reads `--log-level` and `-l` on the dockerd command line or, if it isn't set there, `log-level` in `daemon.json`. It passes the rule when the level is `info` or unset (unset means `info`) and debug mode is off. It fails it otherwise.

## Remediation{% #remediation %}

Remove the log level from the dockerd command line and from `daemon.json`, or set it to `info`:

```json
{
  "log-level": "info"
}
```

Then restart the daemon with `systemctl restart docker`.

## Impact{% #impact %}

None.

## Default value{% #default-value %}

The daemon logs at `info`.

## References{% #references %}

1. [https://docs.docker.com/reference/cli/dockerd/](https://docs.docker.com/reference/cli/dockerd/)
