An example of a java maven application which logs to logstash. Logstash is configured with log4j input. Send message is json type and is filtered/parsed. All send to embedded Elasticsearch.