You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The cloudwatch agent fails to write out an error when it can't read any of the configured log files. This leads to lots of theorizing as to why a log file isn't being loaded. The only way to know that amazon-cloudwatch-agent is "working" is if you happen to have multiple log files configured and some are uploading but others aren't. Then you can begin to figure out that it's a permission issue with the logs not being uploaded.
Steps to reproduce
Configure you agent to upload any log file.
Then change the permissions on that log file so that cwagent cannot read it.
Open up the agent's log file. There will be no mention of the fact that the cloudwatch agent can't read the file.
What did you expect to see?
It's crucial for troubleshooting that an error message be written out to tell the operator that the cloudwatch agent can't read any of the configured log file.
What did you see instead?
Nothing. There is no log message written when it can't read a configured log file.
What version did you use?
Version: 1.300044.0-1.amzn2
What config did you use?
Config: You can reproduce this with just the default config and modify it to load a log file.
Environment
OS: Amazon Linux 2023
Additional context
None
The text was updated successfully, but these errors were encountered:
Describe the bug
The cloudwatch agent fails to write out an error when it can't read any of the configured log files. This leads to lots of theorizing as to why a log file isn't being loaded. The only way to know that amazon-cloudwatch-agent is "working" is if you happen to have multiple log files configured and some are uploading but others aren't. Then you can begin to figure out that it's a permission issue with the logs not being uploaded.
Steps to reproduce
What did you expect to see?
It's crucial for troubleshooting that an error message be written out to tell the operator that the cloudwatch agent can't read any of the configured log file.
What did you see instead?
Nothing. There is no log message written when it can't read a configured log file.
What version did you use?
Version: 1.300044.0-1.amzn2
What config did you use?
Config: You can reproduce this with just the default config and modify it to load a log file.
Environment
OS: Amazon Linux 2023
Additional context
None
The text was updated successfully, but these errors were encountered: