# Fork/exec /var/task/functionbeat: exec format error: PathError null

**URL:** <https://discuss.elastic.co/t/fork-exec-var-task-functionbeat-exec-format-error-patherror-null/198630>\
**Category:** Beats\
**Tags:** functionbeat\
**Created:** [September 9, 2019, 8:19am UTC](https://discuss.elastic.co/t/fork-exec-var-task-functionbeat-exec-format-error-patherror-null/198630 "2019-09-09T08:19:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gavin\_Hardy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gavin_hardy/32/46713_2.png) [@Gavin\_Hardy](https://discuss.elastic.co/u/Gavin_Hardy)\
**Post date:** [September 9, 2019, 8:19am UTC](https://discuss.elastic.co/t/fork-exec-var-task-functionbeat-exec-format-error-patherror-null/198630/1 "2019-09-09T08:19:59Z")

</div>

Hi, When deploying functionbeat, I can get it to successfully deploy to Lambda. However, when looking at logs I get the following error-

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

````auto
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:eu-west-1:<account>:stream/OrganizationCloudTrailStream
output.elasticsearch:
  hosts: ["https://<url>.eu-west-1.aws.found.io:9243"]
  username: 'elastic'
  password: '<password>'
  index: "functionbeat"

setup.kibana:
  host: "https://<url>.eu-west-1.aws.found.io:9243"
  username: 'elastic'
  password: '<password>'

setup.template.name: "functionbeat"
setup.template.pattern: "functionbeat-*"
setup.template.enabled: false```

The lambda function works when using Cloudwatch as the input, but doesn't when using kinesis
````

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 29, 2019, 10:23pm UTC](https://discuss.elastic.co/t/fork-exec-var-task-functionbeat-exec-format-error-patherror-null/198630/2 "2019-09-29T22:23:17Z")

</div>

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