setting logs_enabled: true during install?
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 52/100
Research direction
Start by reading the install script referenced in the report and trace how DD_LOGS_ENABLED is handled while generating /etc/datadog-agent/datadog.yaml. Reproduce a clean install with the variable set, then verify that the resulting configuration contains logs_enabled: true; done means the documented environment variable works during installation.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- Shell
- Stars
- 17
- Forks
- 14
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DataDog/agent-linux-install-script
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
DataDog/agent-linux-install-script#354 · 1 comment · 1 reaction ·
All issues in DataDog/agent-linux-install-script
Similar issues
-
Bob Shell support Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
tooling
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
openSUSE/python-rpm-macros#219 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
YunoHost-Apps/adguardhome_ynh#258 ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repair Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
ValveSoftware/SteamOS#2829 ·