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

8.16.0 Stack Monitoring unable to load pages for Elasticsearch with logsLocator element #199902

Open
rseldner opened this issue Nov 13, 2024 · 8 comments · May be fixed by #200043
Open

8.16.0 Stack Monitoring unable to load pages for Elasticsearch with logsLocator element #199902

rseldner opened this issue Nov 13, 2024 · 8 comments · May be fixed by #200043
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Stack Monitoring Team:Monitoring Stack Monitoring team Team:obs-ux-logs Observability Logs User Experience Team

Comments

@rseldner
Copy link

rseldner commented Nov 13, 2024

Kibana version:
8.16.0

Elasticsearch version:
8.16.0

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

Describe the bug:
Stack monitoring UI errors when attempting to view Elasticsearch metrics
Kibana and Integrations Server are unaffected

Steps to reproduce:

  1. Configure monitoring data (to itself or from another cluster)
  2. Navigate to Stack Monitoring
  3. Select a Cluster
  4. Under Elasticsearch click either:
    • Overview (Errors) 💥
    • Nodes
      • Select A Node (errors) 💥
    • Logs (errors) 💥

Screenshots (if relevant):
Image

Errors in browser console (if relevant):

Full Error text
TypeError: Cannot read properties of undefined (reading 'logsLocator')
    at $s (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:199305)
    at logs_Logs.renderCallout (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:200271)
    at logs_Logs.render (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:201408)
    at Ja (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:429:71980)
    at Qa (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:429:71763)
    at ec (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:429:115909)
    at Pc (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:429:99736)
    at Ic (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:429:99563)
    at Nc (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:429:99396)
    at xc (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:429:96239)


The above error occurred in logs_Logs:
    at logs_Logs (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:199425)
    at div
    at https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:360:42187
    at y (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:360:69044)
    at div
    at https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:360:42187
    at h (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:514:96088)
    at div
    at https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:360:42187
    at h (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:381:1067824)
    at Hs (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:201453)
    at div
    at div
    at https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:360:42187
    at h (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:514:96088)
    at div
    at https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:360:42187
    at h (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:381:1067824)
    at div
    at https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:360:42187
    at section
    at https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:360:42187
    at f (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365:1083402)
    at Section (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:381:1071446)
    at main
    at https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:360:42187
    at b (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:594:84420)
    at div
    at https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:360:42187
    at b (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:594:83844)
    at w (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:381:1069284)
    at Da (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:249050)
    at pn (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:355797)
    at zn (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:390728)
    at t (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:355:117321)
    at A (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:101759)
    at pr (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:484640)
    at t (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:355:119487)
    at V (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:102509)
    at C (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:28:5381)
    at ne (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:28:11217)
    at te (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:28:10582)
    at K (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:594:12653)
    at t (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:355:113649)
    at L (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:101573)
    at c (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:3:4324)
    at c (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:3:4324)
    at ee (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:105071)
    at Provider (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:1:25355)
    at x (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:43:397204)
    at k (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:43:398083)
    at p (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:43:392933)
    at c (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365:203076)
    at t (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:43:307282)
    at ee (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:43:307788)
    at Context (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/core/core.entry.js:16:215283)
    at d (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365:164636)
    at p (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365:417637)
    at v (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:360:42631)
    at a (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:388:11593)
    at b (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:6:29892)
    at T (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365:654802)
    at s (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:594:85068)
    at s (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:376:219197)
    at a (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:365:1009911)
    at m (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:381:1072282)
    at M (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:100547)
    at E (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:100872)
    at w (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:101352)
    at br (https://REDACTED.kb.us-central1.gcp.cloud.es.io/a8a07dfc586d/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:485926)

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

Any additional context:

@rseldner rseldner added bug Fixes for quality problems that affect the customer experience Feature:Stack Monitoring Team:Monitoring Stack Monitoring team labels Nov 13, 2024
@flash1293 flash1293 added the Team:obs-ux-logs Observability Logs User Experience Team label Nov 13, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)

@flash1293
Copy link
Contributor

Looks like this was caused by a recent refactoring here: https://github.com/elastic/kibana/pull/190835/files#diff-ad4e42fbe4d2a7a99ec5d52fbf127ded12f0efe02a10e3afa0409b40be1f4bcfR383

The locators object isn't part of the setup contract of the infra plugin anyway, which is what the error is about (trying to access locators.logsLocator here:

const base = Legacy.shims.infra.locators.logsLocator.getRedirectUrl({

This happened because this file is still JS, so type-checking doesn't work.

@consulthys
Copy link
Contributor

Thanks @flash1293 for digging this one out, but this seems to only happen if the Observability / Logs feature is enabled, which doesn't seem to be the default when spinning up a cluster and picking the "Search" onboarding flow.

Image

@flash1293
Copy link
Contributor

@consulthys For cloud that's right, it is the default for on-prem though because on-prem is using the classic nav which enables the log stream app by default.

@consulthys
Copy link
Contributor

@flash1293 but if I'm not mistaken, that feature can be disabled both in cloud and on-prem.
The result is that there's no link to jump from Stack Monitoring to the Logs viewer and the user will need to go to Discover and set it up himself, is that correct?

@flash1293
Copy link
Contributor

@consulthys Absolutely right on all counts, just highlighting that it's broken by default on on-prem for sufficiently privileged users.

@Kerry350
Copy link
Contributor

Just want to validate something regarding log views and the fix for this.

Ideally what we want to do is use getLogsLocatorsFromUrlService() and use the logs locators (same as in #190835).

Currently Stack Monitoring relies on a log view called "internal-stack-monitoring", defined via logsShared.logViews.defineInternalLogView (it's one of three uses across Kibana, it's not common). This log view points to the following indices: *:filebeat-*,filebeat-*,*:logs-elasticsearch.*-*,logs-elasticsearch.*-*.

Log Views are being deprecated soon (along with the log stream etc). The centralised log sources advanced setting has taken it's place. The default for this setting does contain filebeat-* and logs-*. But it doesn't prepend the CCS portion like Stack Monitoring does (via the SM getIndexPatterns() function).

Are we okay using the logs locator as it stands right now? (so, by default this wouldn't include the CCS prefix, but users could update their setting).

We do also have a locator that can use a Data View ID, but this would have to be persisted in some way (plugin setup etc).

@flash1293
Copy link
Contributor

@Kerry350 Can't we link to Discover using an ad-hoc data view with *:filebeat-*,filebeat-*,*:logs-elasticsearch.*-*,logs-elasticsearch.*-* ?

flash1293 pushed a commit to flash1293/kibana that referenced this issue Nov 13, 2024
flash1293 added a commit that referenced this issue Nov 13, 2024
Fresh version of #199995

Known issues of 8.16.0

- #199902
- #199892
- #199891

FYI @paulb-elastic, @consulthys, @vinaychandrasekhar 

Paul suggested to involve @lcawl & @colleenmcginnis 

I would invite the owners of those issues to expand/edit the proposed
text and add workarounds if any

---------

Co-authored-by: Luca Belluccini <[email protected]>
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Nov 13, 2024
Fresh version of elastic#199995

Known issues of 8.16.0

- elastic#199902
- elastic#199892
- elastic#199891

FYI @paulb-elastic, @consulthys, @vinaychandrasekhar

Paul suggested to involve @lcawl & @colleenmcginnis

I would invite the owners of those issues to expand/edit the proposed
text and add workarounds if any

---------

Co-authored-by: Luca Belluccini <[email protected]>
(cherry picked from commit 20e023b)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Nov 13, 2024
Fresh version of elastic#199995

Known issues of 8.16.0

- elastic#199902
- elastic#199892
- elastic#199891

FYI @paulb-elastic, @consulthys, @vinaychandrasekhar

Paul suggested to involve @lcawl & @colleenmcginnis

I would invite the owners of those issues to expand/edit the proposed
text and add workarounds if any

---------

Co-authored-by: Luca Belluccini <[email protected]>
(cherry picked from commit 20e023b)
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:Stack Monitoring Team:Monitoring Stack Monitoring team Team:obs-ux-logs Observability Logs User Experience Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants