Collecting AWS cloudwatch logs #1957
Closed
jaslkaur29
announced in
Community Discussions
Replies: 1 comment 1 reply
-
|
hi @jaslkaur29! I'd recommend asking in the collector contrib repo: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/awscloudwatchreceiver/README.md |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use the awscloudwatch receiver and print them to console for now, this is the config that I am using. I am running it a Kubernetes pod. I am able to see that OTEL is connected to the log group but unable to print logs from all the streams. How should I proceed further?
receivers:
awscloudwatch:
logs:
groups:
autodiscover:
limit: 10
prefix: /aws/events/networkmanagerloggroup
poll_interval: 10s
region: us-west-2
pipelines:
logs:
receivers:
- awscloudwatch
exporters:
- debug
This is the log that I am receiving from my pod
2024-02-19T18:57:01.806Z debug [email protected]/logs.go:323 discovered log group {"kind": "receiver", "name": "awscloudwatch", "data_type": "logs", "log group": "{\n Arn: "arn:aws:logs:us-west-2:494665075828:log-group:/aws/events/networkmanagerloggroup:",\n CreationTime: 1706123061129,\n LogGroupClass: "STANDARD",\n LogGroupName: "/aws/events/networkmanagerloggroup",\n MetricFilterCount: 0,\n StoredBytes: 33447\n}"}
2024-02-19T18:57:11.773Z debug [email protected]/logs.go:287 attempting to discover log groups. {"kind": "receiver", "name": "awscloudwatch", "data_type": "logs", "limit": 10}
2024-02-19T18:57:11.804Z debug [email protected]/logs.go:323 discovered log group {"kind": "receiver", "name": "awscloudwatch", "data_type": "logs", "log group": "{\n Arn: "arn:aws:logs:us-west-2:494665075828:log-group:/aws/events/networkmanagerloggroup:",\n CreationTime: 1706123061129,\n LogGroupClass: "STANDARD",\n LogGroupName: "/aws/events/networkmanagerloggroup",\n MetricFilterCount: 0,\n StoredBytes: 33447\n}"}
Beta Was this translation helpful? Give feedback.
All reactions