I'd move this code to the logplex_app startup phase - parse the url and put it in the application env, then put the lookup in the start_link function (this will let us change the app env and restart the config redis process if we need to change the uri for some reason).