Are you expecting to find application at the top level of the document? If yes, you need to set target: '' under add_fields as per the documentation. I'd expect you to have a fields.application key in your documents with the configuration you showed.
Your example should work. However, please check your indentation levels in the YAML file. The original example had processors nested inside of a log input.
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.