Error while forwarding logs from one machine to another machine

Hi everyone, I want to send docker logs from machine B to machine A but get some errors. Any reply will be appreciated. :grinning:
on machine A (IP: 52.80.xx.xx):

  1. I set up ELK framework through docker-elk
sudo docker run \
        --rm \
        --ulimit nofile=1024:65536 \
        -p 5601:5601 -p 9200:9200 -p 5044:5044 \
        -d \
        --name elk \
  1. I get in this container and modify /etc/logstash/conf.d/02-beats-input.conf to
input {
  beats {
    port => 5044

(do i need to do something to make this config active?)

on machine B:

  1. rpm install filebeat
  2. modify /etc/filebeat/filebeat.yml
    enabled: true
    hosts: ["52.80.xx.xx:5044"]
    timeout: 15

      type: docker
      containers.ids: '*'
        - /var/log/syslog
        - /var/log/auth.log
      document_type: syslog
  1. restart filebeat and debug, get error
2020-01-12T15:46:00.899Z        INFO    pipeline/output.go:105  Connection to backoff(async(tcp://52.80.xx.xx:5044)) established
2020-01-12T15:46:00.920Z        ERROR   logstash/async.go:256   Failed to publish events caused by: lumberjack protocol error
2020-01-12T15:46:00.923Z        ERROR   logstash/async.go:256   Failed to publish events caused by: client is not connected

switch to machine A, get exception

020-01-12T16:06:21,101][WARN ][][main] An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
io.netty.handler.codec.DecoderException: error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER

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