Function: <functionbeat>, could not deploy, error: incompatible type received, expecting: 'functionManager'

Hi there,

I have setup functionbeat to pull data from my kinesis data stream, and push to ES. However, when setting up the function beat I get the following error.

Function: eventlogsfunctionbeat, could not deploy, error: incompatible type received, expecting: 'functionManager'

This is my setup

functionbeat.yml

functionbeat.provider.aws.deploy_bucket: "<bucket>"
functionbeat.provider.aws.functions:
  - name: eventlogsfunctionbeat
    enabled: true
    type: kinesis
    description: "lambda function for event log kinesis"
    triggers:
      - event_source_arn: arn:aws:kinesis:<region>:<account>:stream/OrganizationCloudTrailStream
output.elasticsearch:
  hosts: ["<host>"]
  username: 'elastic'
  password: '<password>'
  index: "functionbeat"
  
setup.kibana:
  host: "<host>"
  username: 'elastic'
  password: '<password>'
  
setup.template.name: "functionbeat"
setup.template.pattern: "functionbeat-*"
setup.template.enabled: false

My Makefile is

	@./functionbeat setup -c $(LOGS_CONFIG)
	@./functionbeat deploy -c $(LOGS_CONFIG) "eventlogsfunctionbeat"

gitlab-ci.yml

  extends: .deploy
  variables:
    AWS_ACCESS_KEY_ID: ${LOGS_AWS_ACCESS_KEY_ID}
    AWS_SECRET_ACCESS_KEY: ${LOGS_AWS_SECRET_ACCESS_KEY}
  script:
    - ./functionbeat setup -c config/functionbeat.yml --template -E 'output.elasticsearch.hosts=["<host>"]'
    - make deploy-logs

Any help would be much appreciated.

Hi, so it turns out my issues was because I wasn't using 7.3.0.

Now it deploys, but I'm getting these errors in my cloudwatch logs from the lambda

fork/exec /var/task/functionbeat: exec format error: PathError
null

Any ideas?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.