Automatically add created, last_changed and changed_by metadata for index templates, component templates and ingest pipelines #108754
Labels
:Data Management/ILM+SLM
Index and Snapshot lifecycle management
>enhancement
Team:Data Management
Meta label for data/management team
Description
Related to #108469
To be able to troubleshoot ingestion issues, it's helpful to know what changed around the time problems started. A full version control system of ES objects is an aspirational goal here, but as a low hanging fruit the meta information about when an ES object was created, last changed and by whom would give a lot of the value without big investments.
Scope
For index templates, component templates and ingest pipelines, track
created_at
,modified_at
andmodified_by
and return as part of the respective APIs to retrieve these objects:It's not possible to write these properties.
Considerations
Merge with
_meta
The existing
_meta
object is user-controlled. An alternative approach would be to add these pieces of information to this object and override whatever the user set manually. While cleaner in the sense of not introducing more properties on these objects, this has some downsides:Permissions
This approach might leak usernames to other users that normally wouldn't have access to them. This could be counteracted by only returning
modified_by
if the user has the required permissions to read user data in the first place.The text was updated successfully, but these errors were encountered: