ERROR: All shards failed for phase: [query]

As I said, please format your code using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

Please edit your posts.

Did you install x-pack on Kibana as well? Did you change the configuration of kibana? Did you restart Kibana?