Filebeat multiline error

we have some database records where one field could contain a new line. Filebeat returns illegal_argument_exception and is dropping these events.
could you please help?