Skip to content

Commit c5eb652

Browse files
authored
Merge pull request #65 from lucaspbordignon/main
Sinks | Add AWS CloudWatch support
2 parents b255dd2 + fa45905 commit c5eb652

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ Set the secrets below associated with your desired log destination
6060
| `AWS_REGION` | Region for the bucket |
6161
| `S3_ENDPOINT` | (optional) Endpoint URL for S3 compatible object stores such as Cloudflare R2 or Wasabi |
6262

63+
### AWS CloudWatch
64+
65+
| Secret | Description |
66+
| ----------------------- | --------------------------------------------------------------------------------------- |
67+
| `AWS_ACCESS_KEY_ID` | AWS Access key with access to the log bucket |
68+
| `AWS_SECRET_ACCESS_KEY` | AWS secret access key |
69+
| `AWS_REGION` | Region for CloudWatch |
70+
| `CLOUDWATCH_LOG_GROUP_NAME` | Log Group to send logs to in CloudWatch |
71+
6372
### Axiom
6473

6574
| Secret | Description |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[sinks.aws_cloudwatch]
2+
type = "aws_cloudwatch_logs"
3+
inputs = [ "log_json" ]
4+
create_missing_group = true
5+
create_missing_stream = true
6+
group_name = "${CLOUDWATCH_LOG_GROUP_NAME}"
7+
compression = "none"
8+
region = "${AWS_REGION}"
9+
stream_name = "{{ fly.app.name }}/{{ host }}"
10+
11+
[sinks.aws_cloudwatch.encoding]
12+
codec = "json"

0 commit comments

Comments
 (0)