The aggregations key is missing from the response, check your permissions for this request

We need ot figure out how to get the same response running the command from the elasticsearch server instance as the kibana server instance. I'm going to try some things on my local machine. How do you have kibana and elasticsearch deployed?