elastic/kibana

[event log] unable to add properties named `meta` to event log doc schema

开放

#158,777 创建于 2023年5月31日

 (2 条评论) (0 个反应) (0 位负责人)TypeScript (8,021 个派生)batch import
Feature:EventLogTeam:ResponseOpsbuggood first issue

仓库指标

星标
 (19,065 个星标)
PR 合并指标
 (平均合并 1天 16小时) (30 天内合并 999 个 PR)

描述

See: https://github.com/elastic/kibana/blob/15b31c62ba8d4a115c359d9bb723147866bbd34c/x-pack/plugins/event_log/scripts/create_schemas.js#L189-L195

It appears the schema generator is looking for meta properties to determine if an ES field is considered an array. And that seems like some dead code, since we specifically call out "array" properties in our schema:

https://github.com/elastic/kibana/blob/15b31c62ba8d4a115c359d9bb723147866bbd34c/x-pack/plugins/event_log/scripts/mappings.js#L278-L285

贡献者指南