-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[receiver/awscloudwatch] Correct config to fetch logs from multiple log groups in a single config #27085
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@ceevaaa, you can use the awscloudwatch:
region: ap-south-1
logs:
poll_interval: 1m
groups:
named:
/aws/kafka/:
/aws/elasticache/:
/aws/redis/:
/aws/rds/:
/aws/lambda/: If you need to autodiscover log groups based on five different prefixes, then I believe you'll need to create five instances of the receiver. |
I see @djaglowski. I want to fetch all the logs from all the streams of these below log groups :
I think you get the idea. Now as you have explained I will need to use five different
Correct ? |
Component(s)
receiver/awscloudwatch
What happened?
Description
Can someone please explain me a config that can fetch logs from a set of log groups (all streams of each log group).
The groups are -
For just one log group you can write -
But how will you do it for 5 different groups ?
Do I need to create five different AWSCloudWatch receivers ?
Any pointers would help here.
Thanks and Regards.
Collector version
v0.83.0
Environment information
OS
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3⭕amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: