Prepare config for elasticsearch