Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

setting logs_enabled: true during install?

Đang mở
#435 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
shell
Lĩnh vực
devops

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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DataDog/agent-linux-install-script

Tất cả issue của DataDog/agent-linux-install-script

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.