Play with hivemq plugin.
A "prismatic" message delivery to multiple channels like: elasticsearch, email, log file. The plugin allow file configuration. To install use: https://github.com/deviantony/docker-elk for getting elasticsearch on local machine. Download the hivemq from: https://www.hivemq.com/downloads/ and configure the location of the hivemq on pom.xml