Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Logs UI] Flyoutitemquery never completes and has consistent timeouts on small cluster with large number of indices #38240

Closed
driskell opened this issue Jun 6, 2019 · 5 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services

Comments

@driskell
Copy link

driskell commented Jun 6, 2019

Kibana version: 6.8

Elasticsearch version: 6.8

Server OS version: CentOS 7 latest

Browser version: Safari

Browser OS version: 12.1.1

Original install method (e.g. download page, yum, from source, etc.): yum

Description of the problem including expected versus actual behavior:
When streaming logs on Logs everything is loading nicely and fast. However, once you click an item to view the log entry details, the slide out sticks on Loading and never loads. Inspecting network we can see the flyoutitemquery takes 30 seconds and fails and returns a timeout.

Expected:

  1. If timeout happens, an error to display. Currently it shows nothing.
  2. The log event to actually display - it seems Logs is capable of retrieving lots of logs and streaming live with no issue, yet retrieving a single item causes a timeout.

Thoughts:
Is it because there is no index mentioned in the flyoutitemquery, so ES has to scan all indices for the given ID?

Steps to reproduce:

  1. Visit Logs
  2. Stream Live
  3. Click an event to show event
  4. Examine Network in inspector whilst doing the above, and compare response times. Retrieving lots of logs to stream is fast. flyoutitemquery is slow or times out.

Errors in browser console (if relevant):
None

Provide logs and/or server output (if relevant):
N/A

@lukeelmers lukeelmers added the Feature:Logs UI Logs UI feature label Jun 6, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-logs-ui

@weltenwort
Copy link
Member

weltenwort commented Aug 5, 2019

I couldn't reproduce it, because I probably don't have a sufficiently large dataset.

If timeout happens, an error to display. Currently it shows nothing.

A reasonable request. It's similar to #40882, but for the log item query.

Is it because there is no index mentioned in the flyoutitemquery, so ES has to scan all indices for the given ID?

That's a possibility, which I will investigate. Should be fixable.

@weltenwort weltenwort removed their assignment Aug 5, 2019
@weltenwort weltenwort added :Logs UI bug Fixes for quality problems that affect the customer experience and removed triage_needed labels Aug 5, 2019
@sgrodzicki sgrodzicki added Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services and removed :Logs UI labels Sep 5, 2019
@driskell
Copy link
Author

driskell commented Feb 3, 2020

Just to confirm - this is still an issue in 6.8.6

I have not yet considered 7.x

@driskell driskell changed the title [Logs UI] Flyoutitemquery when viewing individual log is very slow with consistent timeouts on small cluster [Logs UI] Flyoutitemquery when viewing individual log never completes and has consistent timeouts on small cluster with large number of indices Feb 3, 2020
@driskell driskell changed the title [Logs UI] Flyoutitemquery when viewing individual log never completes and has consistent timeouts on small cluster with large number of indices [Logs UI] Flyoutitemquery never completes and has consistent timeouts on small cluster with large number of indices Feb 3, 2020
@driskell
Copy link
Author

Reproduced in 7.x

@driskell
Copy link
Author

Note that PR does not resolve the displaying of an error. It resolves the underlying conditions though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants