-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Observability][SecuritySolution] Update entity manager to support extension of mappings and ingest pipeline #188410
Conversation
/ci |
1 similar comment
/ci |
/ci |
Pinging @elastic/security-entity-analytics (Team:Entity Analytics) |
x-pack/plugins/observability_solution/entity_manager/server/lib/manage_index_templates.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/entity_manager/server/lib/manage_index_templates.ts
Outdated
Show resolved
Hide resolved
We're now managing template at the entity definition level so we need to update the api key permissions for built in definitions. Can we please add |
Wondering about customization of the builtin definitions, is this something that we want or should we recommend to duplicate the definition to a custom one instead ? cc @simianhacker @tommyers-elastic |
x-pack/plugins/observability_solution/entity_manager/server/templates/components/helpers.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/entity_manager/server/templates/components/helpers.ts
Outdated
Show resolved
Hide resolved
...k/plugins/observability_solution/entity_manager/server/templates/entities_latest_template.ts
Show resolved
Hide resolved
@klacabane Thank you for the great feedback! 🙇 I have updated the code according to the suggestions, except for this comment. Could you please take a second look? |
💚 Build Succeeded
Metrics [docs]
History
cc @machadoum |
LGTM, thanks for the change!
no you don't have to worry about this one :) |
There's still two open questions that we can take as follow ups
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work 🚀 lets get answers to the 2 outstanding questions from Observability before merging.
Edit: Ignore me, I miseed " that we can take as follow ups" 👍 merge away
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
HistoryTo update your PR or re-run it, just comment with: cc @machadoum |
In #188410 we moved history and latest index templates from global scope to definition scope. The definition-scoped templates have a wide pattern that would grep any other definition template already installed and throw the following error because of conflicting priority. This change narrows down the index patterns defined in the templates to only grep the ones from the installed definition ``` { "statusCode": 500, "error": "Internal Server Error", "message": """[illegal_argument_exception Root causes: illegal_argument_exception: index template [entities_v1_history_admin-console-services_index_template] has index patterns [.entities.v1.history.*] matching patterns from existing templates [entities_v1_history_builtin_services_from_ecs_data_index_template] with patterns (entities_v1_history_builtin_services_from_ecs_data_index_template => [.entities.v1.history.*]) that have the same priority [200], multiple index templates may not match during index creation, please use a different priority]: index template [entities_v1_history_admin-console-services_index_template] has index patterns [.entities.v1.history.*] matching patterns from existing templates [entities_v1_history_builtin_services_from_ecs_data_index_template] with patterns (entities_v1_history_builtin_services_from_ecs_data_index_template => [.entities.v1.history.*]) that have the same priority [200], multiple index templates may not match during index creation, please use a different priority""" } ``` --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
Acceptance Criteria
Checklist