Kibana on Azure webapp - all GET requests fail

it's a very weird issue: I've deployed Kibana 7.17.1 and Elasticsearch (same version) to separate Azure Webapp (docker containers), almost all works, but:

GET .kibana/_search

results to:

POST https://MYAPP-kibana.azurewebsites.net/api/console/proxy?path=.kibana/_search&method=GET

response (from IIS, I guess, but it's a linux container):

502 - Web server received an invalid response while acting as a gateway or proxy server.

The same POST request:

POST .kibana/_search

produces:

https://MYAPP-kibana.azurewebsites.net/api/console/proxy?path=.kibana/_search&method=POST

with a regular search body reply.

I didn't find any errors (even with TRACE log level) in Elasticsearch, the corresponding Kibana error log-entry:

{
	"type": "response",
	"@timestamp": "2022-03-28T08:29:35+00:00",
	"tags": ["access:console"],
	"pid": 6,
	"method": "post",
	"statusCode": 502,
	"req": {
		"url": "/api/console/proxy?path=.kibana%2F_search&method=GET",
		"method": "post",
		"headers": {
			"host": "MYAPP-kibana.azurewebsites.net",
			"x-client-ip": "213.185.x.x",
			"x-client-port": "60921",
			"connection": "Keep-Alive",
			"content-length": "0",
			"accept": "text/plain, */*; q=0.01",
			"accept-encoding": "gzip, deflate, br",
			"accept-language": "de,en-US;q=0.9,en;q=0.8",
			"max-forwards": "10",
			"referer": "https://MYAPP-kibana.azurewebsites.net/app/dev_tools",
			"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36",
			"sec-ch-ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\"",
			"kbn-xsrf": "kibana",
			"sec-ch-ua-mobile": "?0",
			"sec-ch-ua-platform": "\"Windows\"",
			"origin": "https://MYAPP-kibana.azurewebsites.net",
			"sec-fetch-site": "same-origin",
			"sec-fetch-mode": "cors",
			"sec-fetch-dest": "empty",
			"x-waws-unencoded-url": "/api/console/proxy?path=.kibana%2F_search&method=GET",
			"client-ip": "213.185.x.x:60921",
			"x-arr-log-id": "fd5bad60-d1cd-4e56-b682-3c7579e44f8f",
			"disguised-host": "MYAPP-kibana.azurewebsites.net",
			"x-site-deployment-id": "MYAPP-kibana",
			"was-default-hostname": "MYAPP-kibana.azurewebsites.net",
			"x-original-url": "/api/console/proxy?path=.kibana%2F_search&method=GET",
			"x-forwarded-for": "213.185.x.x:60921",
			"x-arr-ssl": "2048|256|C=US, O=Microsoft Corporation, CN=Microsoft RSA TLS CA 02|CN=*.azurewebsites.net",
			"x-forwarded-proto": "https",
			"x-appservice-proto": "https",
			"x-forwarded-tlsversion": "1.2"
		},
		"remoteAddress": "169.254.x.x",
		"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36",
		"referer": "https://MYAPP-kibana.azurewebsites.net/app/dev_tools"
	},
	"res": {
		"statusCode": 502,
		"responseTime": 274
	},
	"message": "POST /api/console/proxy?path=.kibana%2F_search&method=GET 502 274ms"
}

Any hints, what could be wrong there, are highly appreciated!
It that helps, I could post here the Azure deployment configs and commands.
Thanks a lot!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.