# Error when running Filebeat to send log to Elasticsearch behind a reverse proxy

**URL:** https://discuss.elastic.co/t/error-when-running-filebeat-to-send-log-to-elasticsearch-behind-a-reverse-proxy/234017
**Category:** Beats
**Tags:** filebeat
**Created:** [May 23, 2020, 8:27pm UTC](https://discuss.elastic.co/t/error-when-running-filebeat-to-send-log-to-elasticsearch-behind-a-reverse-proxy/234017 "2020-05-23T20:27:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aparasxidis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aparasxidis/32/46385_2.png) [@aparasxidis](https://discuss.elastic.co/u/aparasxidis)
#### Post date: [May 23, 2020, 8:27pm UTC](https://discuss.elastic.co/t/error-when-running-filebeat-to-send-log-to-elasticsearch-behind-a-reverse-proxy/234017/1 "2020-05-23T20:27:00Z")

</div>

Hi, I'm running filebeat in docker, when I check the container logs I get:

`pipeline/output.go:105 Connection to backoff(elasticsearch(http://xxxxx.xxxxx.com:80/elastic)) established`

`Failed to perform any bulk index operations: 405 Method Not Allowed: {"error":"Incorrect HTTP method for uri [/] and method [POST], allowed: [GET, HEAD, DELETE]","status":405}`

Clearly, the connection is established, but I think this is related to the Nginx conf that I have for Elasticsearch because all the request are redirected to the root [/], if I change the endpoint for my host it ignores it and send me to the root, where you have the message with the cluster info.

---

<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: [June 20, 2020, 8:27pm UTC](https://discuss.elastic.co/t/error-when-running-filebeat-to-send-log-to-elasticsearch-behind-a-reverse-proxy/234017/2 "2020-06-20T20:27:02Z")

</div>

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