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

[EPM] Error trying to view index pattern when no matching indices exist #56189

Closed
neptunian opened this issue Jan 28, 2020 · 3 comments · Fixed by #61257
Closed

[EPM] Error trying to view index pattern when no matching indices exist #56189

neptunian opened this issue Jan 28, 2020 · 3 comments · Fixed by #61257
Assignees
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:EPM Fleet team's Elastic Package Manager (aka Integrations) project Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@neptunian
Copy link
Contributor

neptunian commented Jan 28, 2020

We create the index pattern when a user installs a package. In the Kibana Management UI, if the user tries to view an index pattern it will fail (see screenshot). When loading an index pattern for the first time the UI checks for some field properties on each field and adds the readFromDocValues property to each field (along with others, I believe, like esTypes) and saves the index pattern. In order to do this it needs to fetch the fields but since no matching indices exists it will fail. This issue already exists (see links below) in other scenarios such as with metricbeat when the user runs setup before starting to collect data but is probably unlikely to do that. In the context of the Ingest Manager we think it's more likely they will run into this. Solution for now is to document and make the user aware of the issue. Another partial solution could be improving the error message the user is presented with so they understand they need to have an index first.

Screen Shot 2020-01-28 at 11 42 12 AM

Similar Issues and background:
#35898
#35481
#40071

@neptunian neptunian added the Feature:EPM Fleet team's Elastic Package Manager (aka Integrations) project label Jan 28, 2020
@neptunian neptunian self-assigned this Jan 28, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest (Feature:EPM)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@streamich
Copy link
Contributor

To reproduce the error start Kibana with

yarn start --xpack.ingestManager.enabled=true --xpack.ingestManager.epm.enabled=true

And then you need to execute POST request once to the server

    core.http
      .post('http://localhost:5603/<YOUR_PREFIX>/api/ingest_manager/epm/packages/system-0.9.0')
      .then(console.log, console.log);

@jen-huang jen-huang added the Team:Fleet Team label for Observability Data Collection Fleet team label Mar 26, 2020
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 Feature:EPM Fleet team's Elastic Package Manager (aka Integrations) project Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants