-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Entity Analytics] [Entity Store] Add audit logs (#196847)
## Summary This PR adds audit logs for the different actions that can be performed on the entity store engines.
- Loading branch information
1 parent
950ee16
commit 6c6ae68
Showing
4 changed files
with
173 additions
and
44 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...ck/plugins/security_solution/server/lib/entity_analytics/entity_store/auditing/actions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const EntityEngineActions = { | ||
INIT: 'init', | ||
START: 'start', | ||
STOP: 'stop', | ||
CREATE: 'create', | ||
DELETE: 'delete', | ||
EXECUTE: 'execute', | ||
} as const; | ||
|
||
export type EntityEngineActions = (typeof EntityEngineActions)[keyof typeof EntityEngineActions]; |
18 changes: 18 additions & 0 deletions
18
.../plugins/security_solution/server/lib/entity_analytics/entity_store/auditing/resources.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const EntityStoreResource = { | ||
ENTITY_ENGINE: 'entity_engine', | ||
ENTITY_DEFINITION: 'entity_definition', | ||
ENTITY_INDEX: 'entity_index', | ||
INDEX_COMPONENT_TEMPLATE: 'index_component_template', | ||
PLATFORM_PIPELINE: 'platform_pipeline', | ||
FIELD_RETENTION_ENRICH_POLICY: 'field_retention_enrich_policy', | ||
FIELD_RETENTION_ENRICH_POLICY_TASK: 'field_retention_enrich_policy_task', | ||
} as const; | ||
|
||
export type EntityStoreResource = (typeof EntityStoreResource)[keyof typeof EntityStoreResource]; |
Oops, something went wrong.