# Filebeat monitoring via proxy

**URL:** https://discuss.elastic.co/t/filebeat-monitoring-via-proxy/129415
**Category:** Beats
**Tags:** filebeat
**Created:** [April 25, 2018, 6:53am UTC](https://discuss.elastic.co/t/filebeat-monitoring-via-proxy/129415 "2018-04-25T06:53:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)
#### Post date: [April 25, 2018, 6:53am UTC](https://discuss.elastic.co/t/filebeat-monitoring-via-proxy/129415/1 "2018-04-25T06:53:22Z")

</div>

Hi All,

I am using filebeat and I want to add xpack monitoring configuration. I do not have direct access to ES so I need to use a proxy. Does some have an example config with use of a proxy server? Also would it be possible to route the monitor traffic trought logstash?

Thanks,  
Paul.

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [April 26, 2018, 12:46am UTC](https://discuss.elastic.co/t/filebeat-monitoring-via-proxy/129415/2 "2018-04-26T00:46:50Z")

</div>

The monitoring output requires an HTTP or HTTPS connection to Elasticsearch. So you could use an [HTTP proxy](https://www.elastic.co/guide/en/beats/filebeat/6.2/configuration-monitor.html#_literal_proxy_url_literal_4) or a reverse HTTP proxy (like nginx or apache httpd).

You cannot route the monitoring data through LS or any other output at this time.

---

<div class="post-metadata">

### Author: ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)
#### Post date: [April 27, 2018, 12:53pm UTC](https://discuss.elastic.co/t/filebeat-monitoring-via-proxy/129415/3 "2018-04-27T12:53:54Z")

</div>

Thanks, for this. In the link there is no example config on how to use a proxy in the output.elasticsearch. Can you maybe point to a example?

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [April 27, 2018, 1:44pm UTC](https://discuss.elastic.co/t/filebeat-monitoring-via-proxy/129415/4 "2018-04-27T13:44:56Z")

</div>

Like this:

```auto
output.elasticsearch:
  hosts: ['example:9200']
  proxy_url: 'http://your.proxy.server:port'

```

---

<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: [May 25, 2018, 1:45pm UTC](https://discuss.elastic.co/t/filebeat-monitoring-via-proxy/129415/5 "2018-05-25T13:45:07Z")

</div>

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