Skip to content

Commit 049b16b

Browse files
authored
Merge pull request #71 from superfly/cloudwatch-encoding
adding codec option for cloudwatch
2 parents c5eb652 + 66184c9 commit 049b16b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ Set the secrets below associated with your desired log destination
6262

6363
### AWS CloudWatch
6464

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 |
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+
| `CLOUDWATCH_ENCODING_CODEC` | CloudWatch codec ( default is "json" ) |
7172

7273
### Axiom
7374

vector-configs/sinks/aws_cloudwatch.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
stream_name = "{{ fly.app.name }}/{{ host }}"
1010

1111
[sinks.aws_cloudwatch.encoding]
12-
codec = "json"
12+
encoding.codec = "${CLOUDWATCH_ENCODING_CODEC:-json}"

0 commit comments

Comments
 (0)