Having multiple configuration files in a directory is equivalent to concatenating those files in alphabetical filename order and passing the resulting file to Logstash.
From the above config, what happen if the conditions fails. entries will be written to appropriate log files or else it will be written on last global else configuration.
in a single file. Hence, messages with type equal to "prod" will be sent to a prod-* index in ES and test_parsemissing.log, and messages with type equal to "test" will be sent to a test-* index in ES and prod_parsemissing.log.
No. With the conditions you have set up messages won't be sent to both the prod-* index in ES and prod_parsemissing.log. It's either or. Messages with a "prod" or "test" type will reach the elasticsearch output in one of the conditionals and the file output in the other conditional. Messages with another type value will reach the file output in both conditionals.
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.