# Functionbeat Sending to Wrong Index

**URL:** <https://discuss.elastic.co/t/functionbeat-sending-to-wrong-index/187415>\
**Category:** Beats\
**Tags:** functionbeat\
**Created:** [June 25, 2019, 6:55pm UTC](https://discuss.elastic.co/t/functionbeat-sending-to-wrong-index/187415 "2019-06-25T18:55:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffreygatsby](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jeffreygatsby](https://discuss.elastic.co/u/jeffreygatsby)\
**Post date:** [June 25, 2019, 6:55pm UTC](https://discuss.elastic.co/t/functionbeat-sending-to-wrong-index/187415/1 "2019-06-25T18:55:19Z")

</div>

I'm attempting to change the index that FunctionBeat sends to. Here is my configuration:

```
functionbeat.provider.aws.deploy_bucket: "gatsby-deploy"
functionbeat.provider.aws.functions:
  - name: EcsStagingLogs
    enabled: true
    type: cloudwatch_logs
    description: "Lambda function for transferring 'staging' logs from Cloudwatch 'ecs/staging' to ELK stack."
    triggers:
      - log_group_name: /ecs/staging

cloud.id: "Logs:{cloudinfo}"
cloud.auth: "elastic:{cloudpassowrd}"
setup.template.overwrite: true
setup.template.name: "ecs_staging"
setup.template.pattern: "ecs_staging-*"
output.elasticsearch.index: "ecs_staging-%{+yyyy.MM.dd}"

processors:
 - decode_json_fields:
     fields: ["message"]
     process_array: false
     max_depth: 3
     target: ""
     overwrite_keys: true

```

It appears to be working, but sends logs to "functionbeat-7.1.1" with no date component to the index.

---

<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:** [July 16, 2019, 9:04am UTC](https://discuss.elastic.co/t/functionbeat-sending-to-wrong-index/187415/2 "2019-07-16T09:04:19Z")

</div>

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