Send logs from filebeat to logstash via NGINX reverse proxy

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"
  }
}

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