I am using nginx to serve as a proxy for my kibana. But kibana is unable to communicate with elasticsearch when accessing through nginx. This issue occurs only using Xpack for authentication.
For example if kibana is running at 10.10.10.10:5601, I can access it using this address directy and everything works just fine.
Now I want to map search.mysite.com to this ip using nginx. In this case, I am still able to get to kibana's login page, using the new URL but all login attempts fail.
I tried using access logs in elastic search, but seems like kibana logins are not included in the access logs, only GET, PUT or DELETE requests are logged.