- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
The Agent, by default, logs in INFO
level. You can set the log level to DEBUG
to get more information from your logs.
Note: Debug mode is meant for debugging purposes only. Datadog recommends only enabling DEBUG
for a certain window of time as it increases the number of indexed logs. Set the log level back to INFO
when done.
To enable the Agent full debug mode:
datadog.conf
file. See Agent main configuration file for OS specific details.# log_level: INFO
with log_level: DEBUG
(remove #
to uncomment the line).When run in a container, the Agent cannot be restarted with service datadog-agent restart
(or similar) which causes the container to be killed by Docker. Use supervisor to restart a containerized Agent:
/opt/datadog-agent/bin/supervisorctl -c /etc/dd-agent/supervisor.conf restart all
With the following commands, enable debug logging, restart the Agent, wait 60 seconds, then send a flare, in that order:
sed -i '/\[Main\]/a LOG_LEVEL=DEBUG' /etc/dd-agent/datadog.conf
/opt/datadog-agent/bin/supervisorctl -c /etc/dd-agent/supervisor.conf restart all
sleep 60
/etc/init.d/datadog-agent flare <CASE_ID>
Debug logs can be disabled with:
sed -i '/LOG_LEVEL=DEBUG/d' /etc/dd-agent/datadog.conf
/opt/datadog-agent/bin/supervisorctl -c /etc/dd-agent/supervisor.conf restart all
Or the container can be restarted.
The following Agent log levels are available for log_level
or DD_LOG_LEVEL
:
Option | Critical logs | Error logs | Warn logs | Info logs | Debug logs | Trace logs |
---|---|---|---|---|---|---|
'OFF' | ||||||
'CRITICAL' | ||||||
'ERROR' | ||||||
'WARN' | ||||||
'INFO' | ||||||
'DEBUG' | ||||||
'TRACE' |
Note: When setting the log level to 'OFF'
in the configuration file, quotes are mandatory to prevent the value from being improperly parsed. Quotes are optional for other log levels.