# Setup functionbeat with elasticsearch on ECK

**URL:** https://discuss.elastic.co/t/setup-functionbeat-with-elasticsearch-on-eck/244150
**Category:** Elastic Cloud on Kubernetes (ECK)
**Created:** [August 7, 2020, 10:09am UTC](https://discuss.elastic.co/t/setup-functionbeat-with-elasticsearch-on-eck/244150 "2020-08-07T10:09:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Kay\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay_khan/32/45028_2.png) [@Kay\_Khan](https://discuss.elastic.co/u/Kay_Khan)
#### Post date: [August 7, 2020, 10:09am UTC](https://discuss.elastic.co/t/setup-functionbeat-with-elasticsearch-on-eck/244150/1 "2020-08-07T10:09:06Z")

</div>

Hi friends,

Im looking into setting up functionbeat to ship aws cloudwatch logs to elasticsearch. Ive been looking at the following documentation to setup functionbeat [https://www.elastic.co/guide/en/beats/functionbeat/current](https://www.elastic.co/guide/en/beats/functionbeat/current)

From what i understand ECK does not support this beat [https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-beat.html](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-beat.html). Im not sure it will as it seems completely separate from Kubernetes. What is your take on this?

However there is a section in the functionbeat configuration where i need to point to my elasticsearch cluster on port 9200. How should i deal with this given that my elasticsearch cluster is within kubernetes.

[https://www.elastic.co/guide/en/beats/functionbeat/current/functionbeat-configuration.html](https://www.elastic.co/guide/en/beats/functionbeat/current/functionbeat-configuration.html)

```
output.elasticsearch:
  hosts: ["myEShost:9200"]
  username: "filebeat_internal"
  password: "YOUR_PASSWORD" 
setup.kibana:
  host: "mykibanahost:5601"
  username: "my_kibana_user"  
  password: "YOUR_PASSWORD"

```

Is this as simple as exposing my elasticsearch service on port 9200 publicly via loadbalancer? Right now ive only exposed kibana publicly.

---

<div class="post-metadata">

### Author: ![Anya\_Sabo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anya_sabo/32/49903_2.png) [@Anya\_Sabo](https://discuss.elastic.co/u/Anya_Sabo)
#### Post date: [August 10, 2020, 1:53pm UTC](https://discuss.elastic.co/t/setup-functionbeat-with-elasticsearch-on-eck/244150/2 "2020-08-10T13:53:41Z")

</div>

You can follow the instructions for setting up a community beat (which is a section we should probably rename as we really mean "any beat not explicitly supported") [here](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-beat-configuration.html#k8s-beat-deploy-community-beat) which should get you going

---

<div class="post-metadata">

### Author: ![Kay\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay_khan/32/45028_2.png) [@Kay\_Khan](https://discuss.elastic.co/u/Kay_Khan)
#### Post date: [October 1, 2020, 10:33am UTC](https://discuss.elastic.co/t/setup-functionbeat-with-elasticsearch-on-eck/244150/3 "2020-10-01T10:33:54Z")

</div>

I don't understand how community beat helps because functionbeat is not deployed to kubernetes its deployed as a cloud function eg aws lambda function.

---

<div class="post-metadata">

### Author: ![Sara\_Galal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sara_galal/32/111229_2.png) [@Sara\_Galal](https://discuss.elastic.co/u/Sara_Galal)
#### Post date: [September 28, 2022, 7:30am UTC](https://discuss.elastic.co/t/setup-functionbeat-with-elasticsearch-on-eck/244150/4 "2022-09-28T07:30:39Z")

</div>

is there any way now to deploy functionbeat to kubernates as pod ?

---

<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: [November 4, 2022, 8:09am UTC](https://discuss.elastic.co/t/setup-functionbeat-with-elasticsearch-on-eck/244150/5 "2022-11-04T08:09:13Z")

</div>


