Closed
Description
Starting with 6.0 we generate the ES template and Kibana index mapping at runtime right from fields.yml. We also allow the user to use another fields.yml for generating the template, but there is no actual documentation on the format and types supported. This makes is difficult for users to re-use modify fields.yml in order to have beats manage the templates. Typical use-cases users want to modify fields.yml
: adding custom fields via fields
setting, JSON events in filebeat, custom Ingest Node pipeline.
Syntax:
# fields are configured using YAML dictionaries with `name` and `type` at least
FIELD ::=
name: <FIELD_NAME>
type: <TYPE>
[format: <FORMAT>]
description: <TEXT>
[fields: <FIELD_LIST>] # `type` must be "group" if field list is used.
[ ... ]
FIELD_LIST ::=
[- <FIELD>]+
FIELD_NAME ::= json compatible field name
# used to set the templates type for use with Elasticsearch
TYPE ::=
ip # ip address
| scaled_float
| half_float
| integer
| text
| keyword
| object
| array
| group # use group to define additional fields
| ...
# configure custom formatter for use in Kibana
FORMAT ::= ...