Skip to content

[Logs UI] Use index name for queries for log entry details fly-out#67004

Closed
weltenwort wants to merge 5 commits intoelastic:masterfrom
weltenwort:logs-ui-limit-index-in-details-flyout
Closed

[Logs UI] Use index name for queries for log entry details fly-out#67004
weltenwort wants to merge 5 commits intoelastic:masterfrom
weltenwort:logs-ui-limit-index-in-details-flyout

Conversation

@weltenwort
Copy link
Member

ℹ️ This cleanly applies the relevant changes of #57761 to the current state of master.

Summary

This utilize the index name in the log entry detail fly-out to prevent scanning of all available indices on getLogItem, which can bring down small clusters.

closes #38240

@weltenwort weltenwort added v8.0.0 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 v7.9.0 labels May 19, 2020
@weltenwort weltenwort self-assigned this May 19, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@weltenwort
Copy link
Member Author

@driskell would you mind checking if I represented your contributions correctly?

@weltenwort weltenwort changed the title Logs ui limit index in details flyout [Logs UI] Use index name for queries for log entry details fly-out May 20, 2020
@sgrodzicki sgrodzicki modified the milestone: Logs UI 7.9 May 25, 2020
@weltenwort
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@afgomez afgomez self-assigned this May 28, 2020
Copy link
Contributor

@afgomez afgomez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks nice and works correctly 👍

For a separate PR: I don't know what's our approach to error handling. For example if I try to pass an ID or an index that doesn't exist the API endpoint crashes instead of returning a 404 (I did the API, so this one is on me 😅)..

Since we are the only consumers of this API maybe we don't care, but I wanna comment on it nonetheless

const { sourceId } = useLogSourceContext();
const [flyoutVisible, setFlyoutVisibility] = useState<boolean>(false);
const [flyoutId, setFlyoutId] = useState<string | null>(null);
const [flyoutRef, setFlyoutRef] = useState<{ id: string; index: string } | null>(null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about changing the *Ref suffix? That way we can reserve it to React refs.

Maybe something more specific, like flyoutLogItem, or flyoutLogLine

@sgrodzicki sgrodzicki added this to the Logs UI 7.9 milestone Jun 24, 2020
@sgrodzicki sgrodzicki modified the milestones: Logs UI 7.9, Logs UI 7.10 Jul 15, 2020
@sgrodzicki sgrodzicki added v7.10.0 and removed v7.9.0 labels Jul 15, 2020
@Kerry350 Kerry350 self-requested a review September 28, 2020 14:31
@weltenwort
Copy link
Member Author

Sorry for letting this sit for so long. The async search migration has changed a lot of things underneath which will allow me to solve this in a much simpler way.

@weltenwort weltenwort closed this Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Logs UI Logs UI feature release_note:enhancement Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.13.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

6 participants