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

Improve usability of remote cross cluster search in Kibana #99100

Open
maihde opened this issue May 3, 2021 · 20 comments
Open

Improve usability of remote cross cluster search in Kibana #99100

maihde opened this issue May 3, 2021 · 20 comments
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph)

Comments

@maihde
Copy link
Contributor

maihde commented May 3, 2021

Describe the feature:

Currently remote clusters can be included through index patterns, but this causes various usability issues, especially when multiple remote clusters are configured. The biggest issue is that Index Patterns become tightly coupled to remote cluster connections, so you need multiple patterns, such as:

  • Local Only: some-local-pattern
  • All remotes: *:index-pattern
  • Some remotes: remoteA:index-pattern, remoteB:index-pattern
  • Some remotes: remoteB:index-pattern, remoteC:index-pattern

Given this complexity, users often resort to building their visualizations/dashboards against *:index-pattern. While this works, it makes queries unnecessarily slow in certain circumstances are prohibits the users from

It would be nice if there was the ability to make an optional feature during Index Pattern creation. These Index Patterns could be called "Dynamic Cross Cluster Index Pattern" and a defined by a simple pattern (i.e. no leading cluster name). Then individual local and remotes can be turned on/off from the query bar. The default of what remotes are enabled can be saved with the dashboard/visualization similar to how filters cascade.

Describe a specific use case for the feature:

Users want to build dashboards/visualizations that can selectively be used for only local data, a subset of clusters (both local/remote), or all clusters. This allows users to get better performance for situations where they know data only resides in a certain cluster. It also provides users a fallback for situations where a remote cluster is not performing well or having other connectivity issues (right now, often the query just has a timeout in those situations).

@botelastic botelastic bot added the needs-team Issues missing a team label label May 3, 2021
@kmartastic
Copy link
Contributor

@stacey-gammon do you know how to route or evaluate this request?

@stacey-gammon stacey-gammon added Feature:Data Views Data Views code and UI - index patterns before 8.0 Team:AppServices labels May 6, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@botelastic botelastic bot removed the needs-team Issues missing a team label label May 6, 2021
@exalate-issue-sync exalate-issue-sync bot added 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 labels Jun 21, 2021
@ppisljar
Copy link
Member

ppisljar commented Aug 9, 2022

Thank you for contributing to this issue, however, we are closing this issue due to inactivity as part of a backlog grooming effort. If you believe this feature/bug should still be considered, please reopen with a comment.

@ppisljar ppisljar closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2022
@mbarretta
Copy link

mbarretta commented Aug 10, 2022

This is still a large pain point and blocker for many of our users. Reopening.

@mbarretta mbarretta reopened this Aug 10, 2022
@mattkime
Copy link
Contributor

@mbarretta I think there needs to be more of a user story to this to move it forward. Its unclear to me how the proposed UI would work better than using the existing filter functionality.

@mattkime
Copy link
Contributor

@sixstringcode Curious if you have any ideas

@maihde
Copy link
Contributor Author

maihde commented Sep 12, 2022

@mattkime as the original author of this request, I'd be happy to help discuss our needs with you @mbarretta can share my contact information with you.

@maihde
Copy link
Contributor Author

maihde commented Sep 16, 2022

@mattkime we did some investigations, thanks for the concept of trying filters on _index. This is certainly a good quick solution, but it leaves a few things to be desired:

  1. The query is still sent to remote clusters. This can impact performance in a variety of ways in both normal and abnormal situations. It's important to us to be able to disable queries hitting the remote cluster entirely.

  2. It's not easily discoverable by users when creating the filter, because the autocomplete doesn't fill in. It's somewhat painful to use Discover or visualizations to learn what remote cluster are available and can be filtered.

We aren't tied to any particular UI design, so if you have alternate ideas that satisfy the same goals that would work for us.

@mbarretta
Copy link

mbarretta commented Oct 10, 2022

my super refined take at a remote-cluster aware index selector in Discover
image

Or like this:
image

@petrklapka petrklapka added Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) and removed Team:AppServicesSv labels Nov 28, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@mbarretta
Copy link

EAH talk brought this top of mind! There's room to improve the UX of CCS in kibana

@teresaalvarezsoler
Copy link

@mbarretta quick thought, can’t the user achieve the same by having a field in their dataview populating the cluster name for each index and then using the filters in Dashboard and Discover?

@mbarretta
Copy link

@teresaalvarezsoler

@mbarretta quick thought, can’t the user achieve the same by having a field in their dataview populating the cluster name for each index and then using the filters in Dashboard and Discover?

I think @maihde addressed the filter approach in an earlier comment

@mattkime
Copy link
Contributor

mattkime commented Jul 6, 2023

@teresaalvarezsoler @mbarretta I'd like to see this resolved -

The query is still sent to remote clusters. This can impact performance in a variety of ways in both normal and abnormal situations. It's important to us to be able to disable queries hitting the remote cluster entirely.

What can we do to get this prioritized on the ES side of things?

@teresaalvarezsoler
Copy link

@mattkime we are working on a proposal (together with ES) and we will send it soon.

@kertal
Copy link
Member

kertal commented Aug 3, 2023

@teresaalvarezsoler I guess this PR elastic/elasticsearch#97865 is part of this initiative. But to support this in Kibana, we would need UI to allow to fine tune which clusters would be excluded in Discover, right

@teresaalvarezsoler
Copy link

hey @kertal that's correct, @andreadelrio and @MichaelMarcialis are working on the designs.

@ninoslavmiskovic
Copy link
Contributor

@teresaalvarezsoler Sound good that we are working on some designs. Could you loop me in on it thanks 🙏

@kertal kertal added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated and removed impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels Aug 8, 2023
@kertal kertal assigned mattkime and unassigned mattkime Aug 9, 2023
@teresaalvarezsoler
Copy link

These are the last designs proposed for this issue (the CCS icon will appear only if there is a CCS data view in dashboards, discover, lens, solutions, etc.). Please let us know any comments
image

@BenShoeSpectric
Copy link

The main comment from our user base is that the pip on the new button may not be as visible to the users without significant training. Our suggestion would be that the whole button change colors based on the status of the remote clusters instead of just a pip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph)
Projects
None yet
Development

No branches or pull requests