Skip to content
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

Missing Error Message for Missing logs:DescribeLogGroups Permission in Serilog Configuration for AWS CloudWatch #144

Open
joshua-classen opened this issue Nov 9, 2024 · 1 comment

Comments

@joshua-classen
Copy link

I'm currently configuring Serilog to log to AWS CloudWatch, and my code should automatically create a new log group. My AWS user has the necessary permissions to create a log group, but no log group was created, and no exception was thrown.

After a long troubleshooting process, I discovered that the logs:DescribeLogGroups permission also needs to be added to the policy for Serilog to function properly. Once I added this permission, logging to CloudWatch started working, and the log group was created as expected.

However, no error message was thrown indicating that the logs:DescribeLogGroups permission was missing. It would be very helpful if an error could be added to indicate when this permission is lacking, so that future users can resolve this configuration issue more quickly.

Thank you for considering this improvement!

@wparad
Copy link
Collaborator

wparad commented Nov 9, 2024

I don't even think describe is required anymore if it is being used, we'd more than accept a PR to remove that usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants