I want to use the functionbeat to push cloud-watch logs to elastic cloud. So I have used the manual approach as we dont have permission to deploy lambda through the Cloudformation. So I used the package option to create the zip file and upload it to the lambda. Please note all credentials and other some other information are just a sample values not the real values. Appreciate your support to find the RC for this issue, where id wrong ? Also I would like to know if there any other alternative options that can be used for this as functionbeat going to be end of life very soon.
functionbeat.provider.aws.region: ap-southeast-1
functionbeat.provider.aws.endpoint: "com.amazonaws.ap-southeast-1.s3"
functionbeat.provider.aws.deploy_bucket: "dsfs-cdfdf-np"
functionbeat.provider.aws.functions:
- name: functionbeatqa
enabled: true
type: cloudwatch_logs
# Description of the method to help identify them when you run multiples functions.
description: "lambda function for cloudwatch logs in qa"
concurrency: 5
role: arn:aws:iam::123131232131:role/functionbeat-qa
triggers:
- log_group_name: asda/qa
cloud.id: 'asdsadsada-DDD:Yaasdadasda3NTcxYzQ2MmQ5MGRkZjVjNjc5YjUxZjU1'
cloud.auth: "admin-adadd:Ldasdadada"
This is the log error
2023-03-14T03:03:55.956Z INFO [monitoring] log/log.go:154 Uptime: 63.517266ms 2023-03-14T03:03:55.956Z INFO [monitoring] log/log.go:131 Stopping metrics logging. 2023-03-14T03:03:55.956Z INFO instance/beat.go:456 functionbeat stopped. 2023-03-14T03:03:55.956Z ERROR instance/beat.go:951 Exiting: error when creating the functions, error: no function are enabled for selected provider: 'aws' Exiting: error when creating the functions, error: no function are enabled for selected provider: 'aws' 2023/03/14 03:03:55 exit status 1
command that use to create the package
./functionbeat -v -e -d "*" package functionbeatqa