-
Notifications
You must be signed in to change notification settings - Fork 1
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
87139 - Capture Additional Tags to be sent to Loggly #12
Conversation
60c64f5
to
689e73c
Compare
AB#87139 Changes - Added a method that will check the tags for a lambda and if any start with cloudwatch_loggly_tag it will get added as a tag when the logs are sent to loggly - Updated tests, Readme and Rubocop.yml file Test - This is deployed in the staging account for membership - Add a tag that starts with cloudwatch_loggly_tag to any lambda there and trigger the lambda - Go to loggly and search for the tag
689e73c
to
7a0afcd
Compare
README.md
Outdated
@@ -50,6 +50,10 @@ If you wish to opt-out a Lambda function from Loggly delivery, add the `cloudwat | |||
|
|||
By default, the value from the `FilterPatternParameter` is used when subscribing to CloudWatch log events. This value can be overridden on a per-function basis by setting the Lambda function's `cloudwatch_loggly_filter_pattern` tag to the value that you prefer. | |||
|
|||
### Adding tags to cloudwatch for a lambda | |||
|
|||
By default, the only tags that will be sent to loggly are the ones specified in `LogTagsParameter`, the owner (account number) and the log group that the logs are from. If you would like to send additional tags then you must add a tag to the lambda that starts with `cloudwatch_loggly_tag`. For example a log group with the tag `cloudwatch_loggly_mfe: omninotes` will have the tag `omninotes` added to the loggly tags. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should cloudwatch_loggly_mfe
be cloudwatch_loggly_tag_mfe
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DessertMonster Yes Let me fix that, because that is important
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…dme suggested by Markdown Linter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐘🐘🐘
AB#87139
Changes
Test
This is deployed in the staging account for membership
Add a tag that starts with cloudwatch_loggly_tag to any lambda there and trigger the lambda
Go to loggly and search for the tag
I have written a detailed PR message and detailed commits explaining what is being changed and why