Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

setting logs_enabled: true during install?

オープン
#435 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
shell
領域
devops

調査の方向性

まず、報告で参照されているインストールスクリプトを読み、/etc/datadog-agent/datadog.yaml の生成時に DD_LOGS_ENABLED がどのように処理されるかを追跡します。変数を設定した状態でクリーンインストールを再現し、その後、生成された設定に logs_enabled: true が含まれていることを確認します。ドキュメントに記載された環境変数がインストール中に機能すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
Shell
スター
17
フォーク
14
平均マージ
2日 22時間
マージ済み PR(30日)
7

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DataDog/agent-linux-install-script のほかの issue

DataDog/agent-linux-install-script の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。