elastic/kibana

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

Open

#158.777 geöffnet am 31. Mai 2023

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (19.065 Stars) (8.021 Forks)batch import
Feature:EventLogTeam:ResponseOpsbuggood first issue

Beschreibung

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

Contributor Guide