Testing receiving http_post from external. converting the json data and transform into meaningful fields to be inserted into elasticsearch