# Functions
Document takes a document from Elasticsearch in JSON format and the contents of a Beat's fields.yml and validated the document's fields against it.
NewMapping extracts a mapping from a raw yaml format.
# Variables
ErrCannotConvert is returned when the document value cannot be converted to the expected Elasticsearch datatype.
ErrNotSupported is returned when an Elasticsearch type is not (yet) supported.
# Type aliases
Prefix helps construct a field name in dotted format.