Skip to content

Commit 6d14df9

Browse files
author
Joseph Sirianni
authored
aws cloudwatch input multi group (#422)
1 parent 7a6a884 commit 6d14df9

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Changed
1010

1111
- Upgrade from Go 1.16 to 1.17
12+
- AWS Cloudwatch Input: Added abilty to monitor more than one log group [PR 420](https://github.com/observIQ/stanza/pull/420)
1213

1314
## 1.2.5 - 2021-09-13
1415

docs/operators/aws_cloudwatch_input.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ You can provide `profile` to specify which credential set to use from a Shared C
1919
| --- | --- | --- |
2020
| `id` | `aws_cloudwatch_input` | A unique identifier for the operator. |
2121
| `output` | Next in pipeline | The connected operator(s) that will receive all outbound entries. |
22-
| `log_group_name` | required | The Cloudwatch Logs Log Group Name. |
22+
| `log_group_name` | | The Cloudwatch Logs Log Group Name. Deprecated, use `log_groups` or `log_group_prefix`. |
23+
| `log_groups` | | List of Cloudwatch Log groups. |
24+
| `log_group_prefix` | | Log group name prefix. This will detect any log group that starts with the prefix. |
2325
| `region` | required | The AWS Region to be used. |
2426
| `log_stream_name_prefix` | | The log stream name prefix to use. This will find any log stream name in the group with the starting prefix. Cannot be used with `log_stream_names` |
2527
| `log_stream_names` | | An array of log stream names to get events from. Cannot be used with `log_stream_name_prefix` |
@@ -139,3 +141,19 @@ pipeline:
139141
}
140142
}
141143
```
144+
145+
#### Log Group Name, Log Groups, Log Group Prefix
146+
147+
`log_group_prefix`, `log_groups`, and `log_group_name` can be combined.
148+
149+
Configuration
150+
151+
```yaml
152+
pipeline:
153+
- type: aws_cloudwatch_input
154+
region: us-east-2
155+
log_group_prefix: "/aws"
156+
log_group_name: /aws/rds/instance/backend/postgresql
157+
log_groups:
158+
- /aws/eks/arm64/cluster
159+
```

0 commit comments

Comments
 (0)