I try to delete some old data to clean storage space, I use "POST /index/_forcemerge?only_expunge_deletes=true" in Kibana after a delete-by-query, but I get a 502 time out error everytime, what is wrong here?
What version of things are you running?
5.5.2
Is there anything in the Elasticsearch logs at the time you ran this?