This repository contains a Logstash plugin that builds a reverse-DNS mapping of Docker IPs to Docker-Compose service names, and uses this mapping to enrich HTTP log items with the correct name for their peer.
The Dockerfile builds a Logstash image with this plugin already installed (as the installation is quite slow).
This plugin can only be built with JRuby and requires the Bundler gem. First, install the dependencies:
bundle install
Then build the gem:
gem build logstash-service-ip-map-plugin.gemspec
It may be installed in logstash using the logstash-plugin install
utility.