# Filebeat to collect the logs from kubernetes cluster running on AWS

**URL:** https://discuss.elastic.co/t/filebeat-to-collect-the-logs-from-kubernetes-cluster-running-on-aws/126025
**Category:** Beats
**Tags:** filebeat
**Created:** [March 29, 2018, 6:05am UTC](https://discuss.elastic.co/t/filebeat-to-collect-the-logs-from-kubernetes-cluster-running-on-aws/126025 "2018-03-29T06:05:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TMR](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@TMR](https://discuss.elastic.co/u/TMR)
#### Post date: [March 29, 2018, 6:05am UTC](https://discuss.elastic.co/t/filebeat-to-collect-the-logs-from-kubernetes-cluster-running-on-aws/126025/1 "2018-03-29T06:05:54Z")

</div>

Hi there,

My elasticsearch and kibana instance are running on on-prem and the k8s cluster where i would like to collect the logs from is running on AWS.

I cannot have filebeat running inside the kubernetes cluster as pushing data from AWS to elasticsearch (running on on-prem is not possible ). but it would be great if i can have filebeat running on any of the on-prem server and pointing it to the pull logs from remote k8s cluster. but i am not sure if filebeat is having capability to pull the logs from remote k8scluster?

Please suggest the best way to pull the logs from k8s cluster running on AWS to elasticsearch running on-prem ?

Thanks

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [March 29, 2018, 8:11am UTC](https://discuss.elastic.co/t/filebeat-to-collect-the-logs-from-kubernetes-cluster-running-on-aws/126025/2 "2018-03-29T08:11:19Z")

</div>

It can not collect logs remotely. You should deploy it as a DaemonSet as outlined [in this blog post](https://www.elastic.co/blog/shipping-kubernetes-logs-to-elasticsearch-with-filebeat) and have it ship logs to the remote cluster.

---

<div class="post-metadata">

### Author: ![TMR](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@TMR](https://discuss.elastic.co/u/TMR)
#### Post date: [March 29, 2018, 9:28am UTC](https://discuss.elastic.co/t/filebeat-to-collect-the-logs-from-kubernetes-cluster-running-on-aws/126025/3 "2018-03-29T09:28:11Z")

</div>

Thanks for the response. I have tried this but the only issue is elasticsearch cluster is running on on-prem , so i cannot push the logs from file beat running on AWS to on-prem cluster because of the network settings.

are we planning to have the support for filebeat to pull the logs from remote server in the future releases? If yes , i can simply install filebeat on on-prem server and configure that to pull the logs from AWS k8s (as reaching out to public network from on-prem server is possible)

and kindly suggest if there is any better way to overcome this issue?

---

<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: [April 26, 2018, 9:28am UTC](https://discuss.elastic.co/t/filebeat-to-collect-the-logs-from-kubernetes-cluster-running-on-aws/126025/4 "2018-04-26T09:28:16Z")

</div>

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