Huge PUT request to index pattern during discovery causing Payload content length greater than maximum allowed #23310
Labels
Feature:Data Views
Data Views code and UI - index patterns before 8.0
Feature:Kibana Management
Feature label for Data Views, Advanced Setting, Saved Object management pages
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
triage_needed
Kibana version:
6.4.0
Elasticsearch version:
6.4.0
Server OS version:
Official docker container
docker.elastic.co/kibana/kibana:6.4.0
Original install method (e.g. download page, yum, from source, etc.):
Official docker container
docker.elastic.co/kibana/kibana:6.4.0
Describe the bug:
On Discovery tab when opening a saved search with filters to our logs* index-pattern, an error is displayed in red in top; "Payload content length greater than maximum allowed: 1048576". When the error occur, javascript fails to continue drawing the gui, resulting in saved filters not appearing and unable to add a new filter. The filter is affecting the query to elasticsearch but does not display.
Investigating network traffic reveals that a PUT request to http://DOMAIN/api/saved_objects/index-pattern/metricbeat-* responds with 400 and Payload content length greater than maximum allowed: 1048576
Attempted to delete the index pattern and recreate through metricbeat (6.4.0 official docker image) with same result.
Investigating payload from Kibana reveals that payload size on the put from kibana gui is Content-Length: 1077758
Resolved by setting Kibana config in kibana.yml: server.maxPayloadBytes: 2097152
Seems rather unnecessary that Kibana is sending a request of more than 1 MB as a PUT request on an index pattern from a client browser on an index pattern not even relevant for the current task.
Steps to reproduce:
Expected behavior:
Browser should not attempt to PUT 1 MB of pauload to the index pattern
Provide logs and/or server output (if relevant):
Tom long to post, the whole > 1 MB payload in log
Any additional context:
Upgraded from 6.3.1 to 6.4.0 5 days previous to the error started occuring. Affects all users of Kibana.
The text was updated successfully, but these errors were encountered: