changed post to use config
fixed problem with elasticsearch url