Better elasticsearch setup and log a few additional items.