Hi Team,
Is there any way I can achieve one metricbeat.yml configuration to fetch aws cloudwatch metrics from multiple aws account and each account need seperate indexes something like like metrics-cloud-[Account-Number/Account-Name]-Date?
Yes u can duplicate the configs, will probably just need different keys to connect to the different accounts.
- module: aws
period: 5m
metricsets:
- cloudwatch
metrics:
- namespace: AWS/EC2
#name: ["CPUUtilization", "DiskWriteOps"]
resource_type: ec2:instance
#dimensions:
# - name: InstanceId
# value: i-0686946e22cf9494a
#statistic: ["Average", "Maximum"]
access_key_id: xxx
secret_access_key: xxx
- module: aws
period: 5m
metricsets:
- cloudwatch
metrics:
- namespace: AWS/EC2
#name: ["CPUUtilization", "DiskWriteOps"]
resource_type: ec2:instance
#dimensions:
# - name: InstanceId
# value: i-0686946e22cf9494a
#statistic: ["Average", "Maximum"]
....
The u can do different indices following Configure the Elasticsearch output | Filebeat Reference [7.14] | Elastic
Thanks for providing the solution. Better to use role rather than access key to avoid hardcoding