Exiting: 1 error: error loading index pattern: returned 413

created at 08-04-2021 views: 27

description

kibana is the following version

kibana:7.9.3
413 error when executing setup

./filebeat setup --dashboards

Prompt the following exception

Exiting: 1 error: error loading index pattern: returned 413 to import file: <nil>. Response: {"statusCode":413,"error":"Request Entity Too Large","message":"Payload content length greater than maximum allowed: 1048576"}

Solution

Refer to kibana configuration

The server.maxPayloadBytes parameter is increased a bit. I added a 0 at the end

Open the kibanna configuration file

kibana.yml

Add at the end
server.maxPayloadBytes: 10485760:

#
# ** THIS IS AN AUTO-GENERATED FILE **
#

# Default Kibana configuration for docker target
server.name: kibana
server.host: "0"
elasticsearch.hosts: [ "http://elasticsearch:9200" ]
monitoring.ui.container.elasticsearch.enabled: true
server.maxPayloadBytes: 10485760
created at:08-04-2021
edited at: 08-04-2021: