-
Notifications
You must be signed in to change notification settings - Fork 449
Extend entity schema with relationship and risk #2577
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
base: main
Are you sure you want to change the base?
Conversation
- Removed the reusable section from the host schema for clarity. - Added a new 'relationship' field to the entity schema to track varying attributes between entity types. - Updated the risk schema to include 'entity' as an expected type. These changes aim to improve the organization and functionality of the schemas for better data representation.
- Introduced the `entity.relationship` field to track relationship characteristics of entities for advanced searching and correlation. - Enhanced risk fields with new properties: `calculated_level`, `calculated_score`, `calculated_score_norm`, `static_level`, `static_score`, and `static_score_norm` to improve risk assessment capabilities. - Updated documentation to reflect these changes across relevant ECS reference files.
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
Documentation changes preview: https://docs-v3-preview.elastic.dev/elastic/ecs/pull/2577/reference/ |
🔍 Preview links for changed docs |
- Restore the reusable section for host.target that enables host.target.* fields - Regenerate all artifacts including documentation, CSV, YAML, and Elasticsearch templates
| short: A set of relationship attributes that can vary between entity types. | ||
| description: > | ||
| The structure and content of this field set may differ depending on the entity type. Use this field set when you need to track relationship characteristics of an entity for advanced searching and correlation of normalized values across different providers/sources and entity types. | ||
| beta: This field is beta and subject to change. |
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.
can you add examples?
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.
how this field should be used for external user? It’s not clear what is inside. is it any object or there is some structure.
| expected: | ||
| - host | ||
| - user | ||
| - entity |
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.
how this work if entity is of type of host? Will be there doubled information for risk?
1. What does this PR do?
entity.relationshipfield (beta) to track relationship attributes (already part of entity store schema as of 9.2)entityto risk schema's reusable expected locations)2. Which ECS fields are affected/introduced?
New fields:
entity.relationship(extended, object, beta) - A set of relationship attributes that can vary between entity types. Similar toentity.attributes, this field uses object type to allow flexible schema definitions.Field reuse enabled:
entity.risk.*- Risk fields can now be nested under entity (e.g.,entity.risk.calculated_score,entity.risk.calculated_level, etc.)Purpose:
entity.relationshipenables tracking relationship characteristics of entities for advanced searching and correlation across different providers/sources and entity typesentity.risk.*allows risk scoring for any entity type, not just hosts and users3. Why is this change necessary?
Entity relationship field:
Entity risk field reuse:
4. Have you added/updated documentation?
YES
5. Have you built ECS and committed any newly generated files?
YES
6. Have you run the ECS validation tests locally?
YES
7. Anything else for the reviewers?
Commit Message
Add entity.relationship field and enable risk field reuse for entity