Remove \n Characters in Filebeat

Filebeat doesn't have support for string replacement, but you can do it either with Ingest Node (gsub processor), or with Logstash.