It should be possible to use appenders to log directly into Elasticsearch without even going through Filebeat using something, like this one: https://github.com/rfoltyns/log4j2-elasticsearch