From 49a6906fc5e7129012cfa26e1e5270f90384a0ec Mon Sep 17 00:00:00 2001 From: Colin Surprenant Date: Tue, 24 Nov 2020 14:29:19 -0500 Subject: [PATCH] make meta as :dead instead of :unlicensed --- lib/logstash/outputs/elasticsearch/http_client/pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstash/outputs/elasticsearch/http_client/pool.rb b/lib/logstash/outputs/elasticsearch/http_client/pool.rb index 0341a9f35..f583f5037 100644 --- a/lib/logstash/outputs/elasticsearch/http_client/pool.rb +++ b/lib/logstash/outputs/elasticsearch/http_client/pool.rb @@ -285,7 +285,7 @@ def healthcheck! end alive = @license_checker.appropriate_license?(self, url) - meta[:state] = alive ? :alive : :unlicensed + meta[:state] = alive ? :alive : :dead end rescue HostUnreachableError, BadResponseCodeError => e logger.warn("Attempted to resurrect connection to dead ES instance, but got an error.", url: url.sanitized.to_s, error_type: e.class, error: e.message)