I read about the use of the [@metadata] field in the 1.5 version (https://www.elastic.co/blog/logstash-metadata) and wanted to try it out on logstash 2.0. Unfortunately, there seems to be no way of forcing to output metadata fields in the output{} filters.
Is the the use of [@metadata] still recommended in version 2.0 or is it deprecated?
As @magnusbaeck has pointed out, @metadata was designed specifically to not output. You can copy anything out of @metadata with mutate and sprintf formatting, as appropriate.
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.