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

[New Resource]: Log Anomaly Detector #34788

Open
dwaynebailey opened this issue Dec 7, 2023 · 1 comment
Open

[New Resource]: Log Anomaly Detector #34788

dwaynebailey opened this issue Dec 7, 2023 · 1 comment
Labels
new-resource Introduces a new resource. service/logs Issues and PRs that pertain to the logs service.

Comments

@dwaynebailey
Copy link

Description

Log Groups can be associated with an anomoly detector that search for anomalies in the logs. These anomolies are displayed for further action or the creation of alarms.

These are switched on per log_group or multiple log_groups. They accept a further optional filter pattern. The anomolies are kept for 21 days before being considered normal operational values. Evaluation is done periodically between 1 and 60 minutes, which can be set by the user.

Requested Resource(s) and/or Data Source(s)

  • aws_cloudwatch_log_anomaly_detector

Potential Terraform Configuration

resource "aws_cloudwatch_log_anomaly_detector" "example" {
  name = "logs-anomaly-example-detector"
  log_groups = ["arn:aws:logs:xx-xxxx-1:NNNNNNNNN:log-group:/yyyyyy"]
  evaluation_frequency_minutes = 5
  pattern = "{ $.kubernetes.namespace_name = "dev" }"
  anomaly_visibility_day = 21
}

References

Would you like to implement a fix?

No

Copy link

github-actions bot commented Dec 7, 2023

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/logs Issues and PRs that pertain to the logs service. label Dec 7, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 7, 2023
@justinretzolk justinretzolk added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-resource Introduces a new resource. service/logs Issues and PRs that pertain to the logs service.
Projects
None yet
Development

No branches or pull requests

2 participants