setting logs_enabled: true during install?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Bắt đầu bằng cách đọc script cài đặt được tham chiếu trong báo cáo và theo dõi cách DD_LOGS_ENABLED được xử lý khi tạo /etc/datadog-agent/datadog.yaml. Thực hiện lại một lần cài đặt sạch với biến được thiết lập, sau đó xác minh rằng cấu hình kết quả chứa logs_enabled: true; hoàn tất khi biến môi trường được ghi trong tài liệu hoạt động trong quá trình cài đặt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I've been maintaining an ansible install script and have been calling it like this:
DD_API_KEY={{ DD_API_KEY }} \
DD_ENV={{ env }} \
DD_HOSTNAME={{ sftp_hostname }} \
DD_LOGS_ENABLED=true \
DD_REMOTE_UPDATES=true \
DD_SITE="datadoghq.com" \
bash -c "$(curl -L https://install.datadoghq.com/scripts/install_script_agent7.sh)"
I expect that setting the DD_LOGS_ENABLED parameter to translate into the logs_enabled key in the conf file during a fresh install, according to this comment in the datadog.yaml.
## Log collection Configuration ##
##################################
## @param logs_enabled - boolean - optional - default: false
## @env DD_LOGS_ENABLED - boolean - optional - default: false
## Enable Datadog Agent log collection by setting logs_enabled to true.
#
# logs_enabled: false
However, during a clean install, I am still seeing logs_enabled set to false despite including the DD_LOGS_ENABLED variable.
Attached the relevant install logs:
Installed:
datadog-agent-1:7.80.2-1.aarch64
Complete!
* Adding your API key to the Datadog Agent configuration: /etc/datadog-agent/datadog.yaml
* Setting SITE in the Datadog Agent configuration: /etc/datadog-agent/datadog.yaml
* Adding your HOSTNAME to the Datadog Agent configuration: /etc/datadog-agent/datadog.yaml
* Adding your DD_ENV to the Datadog Agent configuration: /etc/datadog-agent/datadog.yaml
* Setting Datadog Agent configuration to use Remote Updates: /etc/datadog-agent/datadog.yaml
/usr/bin/systemctl
* Starting the Datadog Agent...
Your Datadog Agent is running and functioning properly.
It will continue to run in the background and submit metrics to Datadog.
If you ever want to stop the Datadog Agent, run:
systemctl stop datadog-agent
Is there a way to set logs_enabled: true during install?
- Ngôn ngữ chính
- Shell
- Star
- 17
- Fork
- 14
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 7
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DataDog/agent-linux-install-script
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
DataDog/agent-linux-install-script#354 · 1 bình luận · 1 reaction ·
Tất cả issue của DataDog/agent-linux-install-script
Issue tương tự
-
align on terminology Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CycloneDX/transparency-exchange-api#393 · 1 bình luận ·
-
module/agent platform/macos type/bug/regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
CachyOS/cachyos-aur-derived#754 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
CrowdStrike/falcon-scripts#528 ·
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100