Message of length too large or too small

(ondoken) #1

Hi i makeing a log anslysis system using elastic
It worked well in the test environment, but the following error occurred int the live environment.
the target log file size is 140M , and error message is more 1g

system flow
apache log --> filebeat --> kafka

filebeat (yml)

  • type: log
    enabled: true
    - /logs/apache_access/access_log.20190517
    tail_files: true
    ignore_older: 1m
    close_inactive: 2m
    clean_inactive: 15m
    harvester_buffer_size: 16384
    apache: true
    hosts: [""]
    topic: "apache_log"
    required_acks: 1
    compression: gzip
    max_message_bytes: 1000000

-- error message --
kafka/log.go:53 producer/broker/0 state change to [closing] because kafka: error decoding packet: message of length 1397966893 too large or too small

please help.
Thanks in advance