Unless you have config.support_escapes enabled these do not do what you think they do. If you need to get rid of \n in a string then use a literal newline in the pattern
mutate { gsub =>["json_payload","
",""] }
That said, the json filter will work around newline, carriage return and tab, so you probably do not need to remove them.
A file input will consume a file one line at a time, so unless your JSON is a single line you will need to use a multiline codec to ingest it.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.