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

[Fleet] Make Fleet's managed data views global across spaces #172009

Closed
Tracked by #172964
kpollich opened this issue Nov 27, 2023 · 1 comment · Fixed by #172991
Closed
Tracked by #172964

[Fleet] Make Fleet's managed data views global across spaces #172009

kpollich opened this issue Nov 27, 2023 · 1 comment · Fixed by #172991
Assignees
Labels
Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@kpollich
Copy link
Member

Fleet creates two data views when any integration is installed:

  • logs-*
  • metrics-*

These data views are a useful tool for browsing generic data ingested by integrations, and they're depended on by many integrations that query for data with filters like event.dataset = my_integration.logs, etc.

These data views are currently only created in the current space. Fleet should create them such that they are available across all spaces, e.g.

await soClient.updateObjectsSpaces(
    [{ id: 'logs-*', type: 'index-pattern' }],
    ['*'],
    []
  );
@kpollich kpollich added the Team:Fleet Team label for Observability Data Collection Fleet team label Nov 27, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

kpollich added a commit that referenced this issue Dec 12, 2023
…ces (#172991)

## Summary

Closes #172009 

Adds a call to `updateObjectsSpaces` with `['*']` as the spaces list
after Fleet's managed data views are created.

Existing data views will be updated to be global whenever
`installKibanaAssets` is called.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants