How to find forgotten taskIDs?

Previously, I started a task on Elasticsearch and after a long period of time, I wanted to check its status but forgot its task ID. What should I do? Especially for tasks that terminate abnormally, I want to see their error messages

Hello @Haoke98 ,

See if this link might help you:
https://discuss.elastic.co/t/monitor-elastic-search-re-index-progress/128014/4

You can also try the following command:
GET _tasks?detailed=true&actions=*&group_by=none

Best