Log histograms should be faster #148682
Labels
Feature:Logs UI
Logs UI feature
Team:obs-ux-logs
Observability Logs User Experience Team
Team:Observability
Team label for Observability Team (for things that are handled across all of observability)
Kibana is showing histogram of log messages over time in three different places:
The Discover rendering is notably faster than the other two options. On our clusters rendering an logs histogram for a 24h time frame takes about 5-8s in Discover, but 20-40s in the other two. A 24h timeframe includes 500M-1000M documents.
I believe the faster Discover rendering is due to elastic/elasticsearch#81322. The other histogram calls don't seem to be profiting from the same optimization yet, as far as I understand. Tweaking the query might help here.
In addition, this could probably be speed up further with random sampling. Histograms only show a high-level overview over time. Accuracy is less important than getting a result quickly.
Also relates to #148670
The text was updated successfully, but these errors were encountered: