# \[Logstash monitoring with metricbeat\]: http server gave http response to HTTPs client

**URL:** <https://discuss.elastic.co/t/logstash-monitoring-with-metricbeat-http-server-gave-http-response-to-https-client/259950>\
**Category:** Logstash\
**Tags:** elastic-stack-monitoring\
**Created:** [December 31, 2020, 10:22am UTC](https://discuss.elastic.co/t/logstash-monitoring-with-metricbeat-http-server-gave-http-response-to-https-client/259950 "2020-12-31T10:22:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdelhalim](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Abdelhalim](https://discuss.elastic.co/u/Abdelhalim)\
**Post date:** [December 31, 2020, 10:22am UTC](https://discuss.elastic.co/t/logstash-monitoring-with-metricbeat-http-server-gave-http-response-to-https-client/259950/1 "2020-12-31T10:22:13Z")

</div>

Hello,

I am trying to monitor my cluster using metricbeat, for elasticsearch and kibana nodes it's working perfectly, but when I try to monitor logstash I am getting these errors from my metricbeat logs

```auto
2020-12-31T11:05:15.788+0100	ERROR	[logstash.node]	node/node.go:79	could not fetch node pipelines: error making http request: Get "https://10.13.81.40:9600/_node/pipelines?graph=true": http: server gave HTTP response to HTTPS client
2020-12-31T11:05:15.789+0100	ERROR	[logstash.node_stats]	node_stats/node_stats.go:73	error making http request: Get "https://10.13.81.40:9600/": http: server gave HTTP response to HTTPS client
2020-12-31T11:05:25.789+0100	ERROR	[logstash.node_stats]	node_stats/node_stats.go:73	error making http request: Get "https://10.13.81.40:9600/": http: server gave HTTP response to HTTPS client
2020-12-31T11:05:25.797+0100	ERROR	[logstash.node]	node/node.go:79	could not fetch node pipelines: error making http request: Get "https://10.13.81.40:9600/_node/pipelines?graph=true": http: server gave HTTP response to HTTPS client
2020-12-31T11:05:35.787+0100	ERROR	[logstash.node]	node/node.go:79	could not fetch node pipelines: error making http request: Get "https://10.13.81.40:9600/_node/pipelines?graph=true": http: server gave HTTP response to HTTPS client
2020-12-31T11:05:35.789+0100	ERROR	[logstash.node_stats]	node_stats/node_stats.go:73	error making http request: Get "https://10.13.81.40:9600/": http: server gave HTTP response to HTTPS client

```

Here is my configuration:

**Logsatsh.yml:**

```auto
node.name: VSELK-LOGSTASH
path.data: /var/lib/logstash
pipeline.ordered: auto
config.reload.automatic: true
http.enabled: true
http.host: 10.13.81.40
http.port: 9600
path.logs: /var/log/logstash
monitoring.enabled: false

```

**logstash-xpack.yml:**

```auto
- module: logstash
  xpack.enabled: true
  period: 10s
  hosts: ["https://10.13.81.40:9600"]
  username: "remote_monitoring_user"
  password: "PASSWORD"
  ssl.certificate_authorities: ["/etc/metricbeat/certs/ca.crt"]
  ssl.certificate: "/etc/metricbeat/certs/VSELK-LOGSTASH-KIBANA.crt"
  ssl.key: "/etc/metricbeat/certs/VSELK-LOGSTASH-KIBANA.key"
  ssl.verification_mode: "full"

```

could you tell me please how can I solve this problem ? and how can I set the logstash to use https to respond to the client

Thanks for your help

---

<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:** [January 28, 2021, 10:22am UTC](https://discuss.elastic.co/t/logstash-monitoring-with-metricbeat-http-server-gave-http-response-to-https-client/259950/2 "2021-01-28T10:22:23Z")

</div>

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