Shutting down watcher thread – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.4-8.9

Briefly, this error occurs when Elasticsearch is in the process of shutting down a thread related to the Watcher feature, which is used for alerting and notification based on changes in data. This could be due to a system shutdown, a crash, or a manual stop command. To resolve this issue, you can restart Elasticsearch, ensure that there’s enough system resources (CPU, memory, disk space), or check for any issues in your Elasticsearch configuration that might be causing the Watcher thread to stop unexpectedly.

This guide will help you check for common problems that cause the log ” shutting down watcher thread ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: thread.

Log Context

Log “shutting down watcher thread” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        } catch (ClosedWatchServiceException | InterruptedException expected) {
  "shutting down watcher thread");
        } catch (Exception e) {
            logger.error("shutting down watcher thread with exception"; e);


How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?