# Get the kubernetees application logs to Elasticsearch which is setup in Infra VM

**URL:** <https://discuss.elastic.co/t/get-the-kubernetees-application-logs-to-elasticsearch-which-is-setup-in-infra-vm/240317>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [July 8, 2020, 9:43am UTC](https://discuss.elastic.co/t/get-the-kubernetees-application-logs-to-elasticsearch-which-is-setup-in-infra-vm/240317 "2020-07-08T09:43:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shalinicts](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalinicts/32/81251_2.png) [@Shalinicts](https://discuss.elastic.co/u/Shalinicts)\
**Post date:** [July 8, 2020, 9:43am UTC](https://discuss.elastic.co/t/get-the-kubernetees-application-logs-to-elasticsearch-which-is-setup-in-infra-vm/240317/1 "2020-07-08T09:43:16Z")

</div>

`Hi Team , I have a ELK enterprise version setup in 7 node (RHEL) , 2 Logstash servers(RHEL) , 1 Kibana Windows server in infra within GCP. I have a requirement to monitor application logs within kubernetees . How can I send the logs within kubernetees to ouside where my ELK is setup. Please suggest.`

---

<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:** [July 8, 2020, 2:27pm UTC](https://discuss.elastic.co/t/get-the-kubernetees-application-logs-to-elasticsearch-which-is-setup-in-infra-vm/240317/2 "2020-07-08T14:27:07Z")

</div>

There are examples of deploying filebeat on kubernetes in the beats repo here: [https://github.com/elastic/beats/tree/master/deploy/kubernetes](https://github.com/elastic/beats/tree/master/deploy/kubernetes)

---

<div class="post-metadata">

**Author:** ![Shalinicts](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalinicts/32/81251_2.png) [@Shalinicts](https://discuss.elastic.co/u/Shalinicts)\
**Post date:** [July 9, 2020, 7:46am UTC](https://discuss.elastic.co/t/get-the-kubernetees-application-logs-to-elasticsearch-which-is-setup-in-infra-vm/240317/3 "2020-07-09T07:46:57Z")

</div>

Thanks Anya.How can I send the data collected from filebeats within Kubernets nodes to Elasticsearch which is outside the kubernetes cluster?  
My Elasticserach VM's are not under kubernetes cluster.

---

<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:05am UTC](https://discuss.elastic.co/t/get-the-kubernetees-application-logs-to-elasticsearch-which-is-setup-in-infra-vm/240317/4 "2022-11-04T08:05:29Z")

</div>


