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] Avoid CCS-incompatible index name resolution #70179

Merged

Conversation

weltenwort
Copy link
Member

@weltenwort weltenwort commented Jun 29, 2020

Summary

This fixes #70048 by avoiding a CCS-incompatible ES API call when determining the existence of log indices.

Background

In 7.8.0 we switched the call that the Logs UI used to determine the presence of log indices to an indices.get call, which doesn't work with cross-cluster search. This switches the check back to a size:0 search, because the index name list produced by the indices.get call wasn't yet used anyway.

Testing

As described in #70048, testing requires a setup of two clusters with one being configured as a remote cluster to the other. The Logs UI should then be able to display logs present on the remote cluster if the log indices are configured to only contain a reference to the remote indices.

@weltenwort weltenwort added release_note:fix 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 v7.8.1 labels Jun 29, 2020
@weltenwort weltenwort added this to the Logs UI 7.9 milestone Jun 29, 2020
@weltenwort weltenwort self-assigned this Jun 29, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

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

@weltenwort weltenwort marked this pull request as ready for review June 30, 2020 12:41
@weltenwort weltenwort requested a review from a team as a code owner June 30, 2020 12:41
@elasticmachine
Copy link
Contributor

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

@Kerry350 Kerry350 self-requested a review July 1, 2020 10:57
Copy link
Contributor

@Kerry350 Kerry350 left a comment

Choose a reason for hiding this comment

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

LGTM, works as expected against the CCS enabled cluster 👌

@weltenwort weltenwort merged commit e70bc81 into elastic:master Jul 1, 2020
@weltenwort weltenwort deleted the logs-ui-fix-source-status-ccs-support branch July 1, 2020 12:05
weltenwort added a commit to weltenwort/kibana that referenced this pull request Jul 1, 2020
This fixes elastic#70048 by avoiding a CCS-incompatible ES API call when determining the existence of log indices.
# Conflicts:
#	x-pack/plugins/infra/public/containers/logs/log_source/log_source.ts
weltenwort added a commit that referenced this pull request Jul 1, 2020
…#70427)

Backports the following commits to 7.x:
 - [Logs UI] Avoid CCS-incompatible index name resolution (#70179)
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 1, 2020
…-based-rbac

* upstream/master: (38 commits)
  Move logger configuration integration test to jest (elastic#70378)
  Changes observability plugin codeowner (elastic#70439)
  update (elastic#70424)
  [Logs UI] Avoid CCS-incompatible index name resolution (elastic#70179)
  Enable "Explore underlying data" actions for Lens visualizations (elastic#70047)
  Initial work on uptime homepage API (elastic#70135)
  expressions indexPattern function (elastic#70315)
  [Discover] Deangularization context error message refactoring (elastic#70090)
  [Lens] Add "no data" popover (elastic#69147)
  [Lens] Move chart switcher over (elastic#70182)
  chore: add missing mjs extension (elastic#70326)
  [Lens] Multiple y axes (elastic#69911)
  skip flaky suite (elastic#70386)
  fix bug to add timeline to case (elastic#70343)
  [QA][Code Coverage] Drop catchError and use try / catch instead, (elastic#69198)
  [QA] [Code Coverage] Integrate with Team Assignment Pipeline and Add Research and Development Indexes and Cluster (elastic#69348)
  [Metrics UI] Add context.reason and alertOnNoData to Inventory alerts (elastic#70260)
  Resolver refactoring (elastic#70312)
  [Ingest Manager] Fix agent ack after input format change (elastic#70335)
  [eslint][ts] Enable prefer-ts-expect-error (elastic#70022)
  ...
weltenwort added a commit that referenced this pull request Jul 2, 2020
…#70428)

Backports the following commits to 7.8:
 - [Logs UI] Avoid CCS-incompatible index name resolution (#70179)
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:fix Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.8.1 v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Logs UI] Using cross cluster index not showing log data
4 participants