mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
parent
dbea95111a
commit
42bbdd78c9
1 changed files with 4 additions and 9 deletions
|
@ -260,16 +260,11 @@ module LogStash; class JavaPipeline < JavaBasePipeline
|
|||
end
|
||||
|
||||
def resolve_cluster_uuids
|
||||
cluster_uuids = []
|
||||
outputs.each do |output|
|
||||
if LogStash::SETTINGS.registered?(output.id + ".cluster_uuid")
|
||||
cluster_uuid = LogStash::SETTINGS.get(output.id + ".cluster_uuid")
|
||||
unless cluster_uuids.include? cluster_uuid
|
||||
cluster_uuids.push(cluster_uuid)
|
||||
end
|
||||
outputs.each_with_object(Set.new) do |output, cluster_uuids|
|
||||
if LogStash::PluginMetadata.exists?(output.id)
|
||||
cluster_uuids << LogStash::PluginMetadata.for_plugin(output.id).get(:cluster_uuid)
|
||||
end
|
||||
end
|
||||
cluster_uuids
|
||||
end.to_a.compact
|
||||
end
|
||||
|
||||
def wait_inputs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue