elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.61k stars 8.1k forks source link

[Security Solution] Improve Alerts page to prevent "max stack size exceeded" error #149540

Closed semd closed 10 months ago

semd commented 1 year ago

Describe the feature:

Lately, we are receiving a number of SDHs related to "Maximum call stack size exceeded" on the Security Alerts page:

image

None of them was strictly caused by a bug in Security, but by some other process adding a big number of fields to some of the customer indices accidentally. This causes our indexFields request to respond with a number of fields that the Alerts page can't handle, resulting in a "Maximum call stack size exceeded" error.

The problem is usually solved by another team, but the page that crashes with the full-screen error is the Security Alerts page. We should improve the Alerts page UX to prevent the app to crash in these situations, making the application more resilient and showing some meaningful message to the customer when this happens.

Improvements

elasticmachine commented 1 year ago

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

stephmilovic commented 10 months ago

This should help https://github.com/elastic/kibana/pull/168411