- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Supported OS
Configure Syslog-ng to gather logs from your host, containers, & services.
syslog-ng
is not available for your selected Datadog site ().Collect system logs and log files in /etc/syslog-ng/syslog-ng.conf
and make sure the source is correctly defined:
source s_src {
system();
internal();
};
If you want to monitor files, add the following source:
#########################
# Sources
#########################
...
source s_files {
file("path/to/your/file1.log",flags(no-parse),follow_freq(1),program_override("<program_name_file1>"));
file("path/to/your/file2.log",flags(no-parse),follow_freq(1),program_override("<program_name_file2>"));
};
Set the correct log format:
#########################
# Destination
#########################
...
# For Datadog platform:
destination d_datadog {
http(
url("https://http-intake.logs.
/api/v2/logs?ddsource=<SOURCE>&ddtags=<TAG_1:VALUE_1,TAG_2:VALUE_2>")
method("POST")
headers("Content-Type: application/json", "Accept: application/json", "DD-API-KEY: <DATADOG_API_KEY>")
body("<${PRI}>1 ${ISODATE} ${HOST:--} ${PROGRAM:--} ${PID:--} ${MSGID:--} ${SDATA:--} $MSG\n")
);
};
Define the output in the path section:
#########################
# Log Path
#########################
...
log { source(s_src); source(s_files); destination(d_datadog); };
Restart syslog-ng.
Need help? Contact Datadog support.