Are there any general guidelines on how to go about unit testing logstash config files? I did some research and picked on a few examples, but they all are very old and don't seem to be compatible with logstash 5.4.0 .
Also, is it possible to write unit tests in programming languages other than ruby , like java?
I recommend a tool that I've written, Logstash Filter Verifier. It's currently not compatible with Logstash 5.x but I hope I can sort that out in the next few weeks. Depending on your filters you may be able to test your configuration files with Logstash 2.4 instead.
I actually think it works with 5.x as long as you're pointing it to the Logstash binary of an unpacked tarball rather than a Logstash installed via a Debian package or RPM.
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.