# Logstash not error 400 while sending metrics to elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-not-error-400-while-sending-metrics-to-elasticsearch/186973>\
**Category:** Logstash\
**Created:** [June 22, 2019, 8:35pm UTC](https://discuss.elastic.co/t/logstash-not-error-400-while-sending-metrics-to-elasticsearch/186973 "2019-06-22T20:35:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spavez](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@spavez](https://discuss.elastic.co/u/spavez)\
**Post date:** [June 22, 2019, 8:35pm UTC](https://discuss.elastic.co/t/logstash-not-error-400-while-sending-metrics-to-elasticsearch/186973/1 "2019-06-22T20:35:14Z")

</div>

Monitoring information from logstash to elasticsearch is not working. Here is my configuration of logstash.yml and the error log thrown:

Logstash.yml:

```
path.config: /usr/share/logstash/conf.d
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.hosts: ["http://elk-master03:9200"]

```

Error log:

```
[2019-06-22T19:41:29,099][ERROR][logstash.outputs.elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=>400, :url=>"http://elk-master03:9200/_monitoring/bulk?system_id=logstash&system_api_version=7&interval=1s"}
[2019-06-22T19:42:33,103][ERROR][logstash.outputs.elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=>400, :url=>"http://elk-master03:9200/_monitoring/bulk?system_id=logstash&system_api_version=7&interval=1s"}
[2019-06-22T19:43:37,107][ERROR][logstash.outputs.elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=>400, :url=>"http://elk-master03:9200/_monitoring/bulk?system_id=logstash&system_api_version=7&interval=1s"}

```

I'm using an ELK stack with version 7.1 with the official docker images.

---

<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:** [July 20, 2019, 8:35pm UTC](https://discuss.elastic.co/t/logstash-not-error-400-while-sending-metrics-to-elasticsearch/186973/2 "2019-07-20T20:35:14Z")

</div>

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