Added config option for elasticsearch protocol