You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/logstash/outputs/elasticsearch/ilm.rb
+2-33Lines changed: 2 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -16,20 +16,12 @@ def ilm_in_use?
16
16
begin
17
17
if@ilm_enabled == 'auto'
18
18
ifilm_on_by_default?
19
-
ilm_ready,error=ilm_ready?
20
-
if !ilm_ready
21
-
@logger.info("Index Lifecycle Management is set to 'auto', but will be disabled - #{error}")
22
-
false
23
-
else
24
-
ilm_alias_set?
25
-
end
19
+
ilm_alias_set?
26
20
else
27
21
@logger.info("Index Lifecycle Management is set to 'auto', but will be disabled - Your Elasticsearch cluster is before 7.0.0, which is the minimum version required to automatically run Index Lifecycle Management")
28
22
false
29
23
end
30
24
elsif@ilm_enabled.to_s == 'true'
31
-
ilm_ready,error=ilm_ready?
32
-
raiseLogStash::ConfigurationError,"Index Lifecycle Management is set to enabled in Logstash, but cannot be used - #{error}"unlessilm_ready
33
25
ilm_alias_set?
34
26
else
35
27
false
@@ -47,29 +39,6 @@ def ilm_on_by_default?
47
39
maximum_seen_major_version >= 7
48
40
end
49
41
50
-
defilm_ready?
51
-
# Check the Elasticsearch instance for ILM readiness - this means that the version has to be a non-OSS release, with ILM feature
0 commit comments