Filebeat loses or doesn't deliver messages from AWS CloudTrail

As it turned out, the problem was elasticsearch. problem when matching dynamic field type.