Hey fellas,
I know its been a while since I have been on the forums but everything was working until our administrator decided to upgrade ES. Not a big deal, newer is better, right?
Anyway I am having issues with python 3.6 getting headers to play well with the new and improved ES. In the presvious version I didnt have to set headers, but now I do because I keep on getting "Http Error: 406 Client Error: Not Acceptable"... Here is the snip of code I think is where the issue is at.
headers = {'Content-Type': 'application/json'}
try:
response = requests.get('{}/logstash*/_search'.format(url), data=json.dumps(data), headers=headers,
verify=False,
auth=(un, pw))