added a config for stdout elasticsearch and stdin redis