JRald


Structured logging with SLF4J and Logback

Structured logging with SLF4J JSON logging with Logback contrib JSON logging with Logback Logstash layout

Continue Reading

Testing a Java and Elasticsearch 5.0 application

A long time ago, I wrote this article in french explaining how to test a Java application talking to Elasticsearch. At that time (Elasticsearch 1.x), it was easy to start en embedded Elasticsearch, it was a oneliner: Node node = NodeBuilder.nodeBuilder().node(); Starting with

Continue Reading

Scaling Kafka

In my previous article about Kafka, I introduced some basic concepts, and showed how to use this message broker using the Java client API. In this article I will tackle an operational need: adding and removing nodes in a Kafka 0.10.0 cluster. Creating

Continue Reading

Kafka Java Client

Apache Kafka is trendy software which mixes a message broker and an event log. From the ground up, it’s a distributed solution designed for scalability and performance. It was created by LinkedIn in 2011, it is now open-source and supported by the Confluent

Continue Reading

Testing Logstash configuration

You wrote a piece of Logstash configuration which can parse some logs. You tested several corner cases to ensure the output in Elasticsearch was alright. How do you protect this clever configuration file against regressions? Unit testing to the rescue of course! Simple example For

Continue Reading