elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.71k stars 8.13k forks source link

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

Open pmuellr opened 1 year ago

pmuellr commented 1 year ago

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

elasticmachine commented 1 year ago

Pinging @elastic/response-ops (Team:ResponseOps)

hunle1 commented 1 year ago

Hi @mikecote can I take this issue?