# How I can send logs from filebeat to Elasticsearch in another GKE

**URL:** <https://discuss.elastic.co/t/how-i-can-send-logs-from-filebeat-to-elasticsearch-in-another-gke/193372>\
**Category:** Logs\
**Created:** [August 1, 2019, 3:55pm UTC](https://discuss.elastic.co/t/how-i-can-send-logs-from-filebeat-to-elasticsearch-in-another-gke/193372 "2019-08-01T15:55:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Oceans](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_oceans/32/51452_2.png) [@David\_Oceans](https://discuss.elastic.co/u/David_Oceans)\
**Post date:** [August 1, 2019, 3:55pm UTC](https://discuss.elastic.co/t/how-i-can-send-logs-from-filebeat-to-elasticsearch-in-another-gke/193372/1 "2019-08-01T15:55:03Z")

</div>

Hi!

I have two GKE clusters in different GCP projects.

GKE clusters:  
**1) GKE-ELASTIC (with kibana and elastic)**  
**2) GKE-APPS (with my microservices)**

In the GKE-APPs I disabled the gke logging, because I want to redirect all logging to my "external"/dedicated gke-elastic. For that I installed the fluent-bit.

Step:  
**helm install --name fluentbit stable/fluent-bit**

I guest its the only thing I need to install in my GKE-Apps cluster right? but the point is find the right setup for the backend.

```
backend:
  type: es
  es:
    host: 10.148.0.242
    port: 9200
    index: kubernetes_cluster
    type: flb_type
    logstash_prefix: kubernetes_cluster
    replace_dots: "On"
    time_key: "@timestamp"
    http_user: "elastic"
    http_passwd: "vt8sv2zhrr2nbpkdgh422flc"
    tls: "off"
    tls_verify: "on"
    tls_ca: ""
    tls_debug: 1

```

I try with the service name, with the clusterIP, but nothing...

The error always is like that

```
[2019/08/01 15:36:17] [info] [filter_kube] API server connectivity OK
[2019/08/01 15:36:17] [info] [sp] stream processor started
[2019/08/01 15:36:18] [error] [http_client] broken connection to 10.148.0.242:9200 ?
[2019/08/01 15:36:18] [warn] [out_es] http_do=-1 URI=/_bulk
[2019/08/01 15:36:18] [error] [http_client] broken connection to 10.148.0.242:9200 ?
[2019/08/01 15:36:18] [warn] [out_es] http_do=-1 URI=/_bulk
[2019/08/01 15:36:18] [error] [http_client] broken connection to 10.148.0.242:9200 ?

```

Do you know what configuration should I try?

Any suggestions will be appreciated!

Thank you

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [August 8, 2019, 11:27am UTC](https://discuss.elastic.co/t/how-i-can-send-logs-from-filebeat-to-elasticsearch-in-another-gke/193372/2 "2019-08-08T11:27:42Z")

</div>

Hi @David_Oceans,

I'm not an expert in things related to fluent bit or GKE, but from the ip address I guess that `10.0.0.0/8` addresses are not routed between k8s clusters without extra configuration. It might be worth investigating how the two clusters can be connected, e.g. via a [VPC](https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-shared-vpc).

---

<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 5, 2019, 11:27am UTC](https://discuss.elastic.co/t/how-i-can-send-logs-from-filebeat-to-elasticsearch-in-another-gke/193372/3 "2019-09-05T11:27:53Z")

</div>

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