New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Agent does not log anything when it fails to start due to configuration error #23009
Comments
Hi @timmc-edx, Were your host's service logs, PS: More-directly to your suggestion, since |
I didn't try those, but it does appear that they would have helped. Maybe one or both of those could be listed on the agent troubleshooting page? (That's where I looked for guidance.) |
(Oddly enough, I can't find any system log files that cover |
@timmc-edx I'll take a look at the troubleshooting page to see if we can improve it. As for service log files, depending on the platform (I'm assuming Linux and VM/host install) you should be able to do: |
Thanks! But yeah, there's no journalctl on this system -- I'm using the documented |
Same problem-ish just this morning. Fresh install, and all was well setting:
Then i set
That would be the line for In this case, I get the error now, which really means, "the indent level is wrong, make sure to uncomment the |
Agent Environment
7.51.0 on Ubuntu in a Docker container
Describe what happened:
I made a syntax error in
/etc/datadog-agent/datadog.yaml
(accidentally typed.
on the first line, which was otherwise blank) and couldn't figure out why the agent was failing to start/Describe what you expected:
I would expect there to be error logs in
/var/log/datadog/agent.log
indicating a config error, but there were no new logs there at all.The text was updated successfully, but these errors were encountered: