Having conditionals within input blocks probably doesn't work. Up until the rather recent addition of the environment variable feature it hasn't been meaningful to have conditionals. But if it's not supposed to work then Logstash should complain about the conditional rather than just ignore it. Could you file a GitHub issue?
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.