Fix logging so it actually works.

It got broken due to upgrades to the elasticsearch client as well as
overall configuration tweaks in this branch.