# Send logs from filebeat to logstash via NGINX reverse proxy

**URL:** <https://discuss.elastic.co/t/send-logs-from-filebeat-to-logstash-via-nginx-reverse-proxy/347590>\
**Category:** Logstash\
**Created:** [November 21, 2023, 7:22am UTC](https://discuss.elastic.co/t/send-logs-from-filebeat-to-logstash-via-nginx-reverse-proxy/347590 "2023-11-21T07:22:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![R\_H\_O\_M\_B\_I\_X](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/r_h_o_m_b_i_x/32/127823_2.png) [@R\_H\_O\_M\_B\_I\_X](https://discuss.elastic.co/u/R_H_O_M_B_I_X)\
**Post date:** [November 21, 2023, 7:22am UTC](https://discuss.elastic.co/t/send-logs-from-filebeat-to-logstash-via-nginx-reverse-proxy/347590/1 "2023-11-21T07:22:34Z")

</div>

```auto
Hi

I'm looking for a way to forward my logs from filebeat where filebeat is reading logs from my local machine file and sending it to my private server in which logstash is installed via nginx reverse proxy where nginx installed in another server. So when I check logstash and kibana I see the below:
Received an event that has a different character encoding than you configured. 

Logstash pipleine:
input {
  tcp {
     port => 5044
     proxy_protocol => true
     codec => line{ charset => "UTF-8"}
 }
}
filter{
}
output {
  elasticsearch {
    hosts => ["https://localhost:9200"]
    index => "my_index"
  }
}

```

---

<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:** [December 19, 2023, 7:23am UTC](https://discuss.elastic.co/t/send-logs-from-filebeat-to-logstash-via-nginx-reverse-proxy/347590/2 "2023-12-19T07:23:18Z")

</div>

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