From 70a9aae551e42fa0ae7b262c1841322a9a2ded31 Mon Sep 17 00:00:00 2001 From: TAGOMORI Satoshi Date: Thu, 18 Aug 2016 15:44:00 +0900 Subject: [PATCH] fix to add output plugins under MultOutput plugins to call lifecycle methods --- lib/fluent/agent.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/fluent/agent.rb b/lib/fluent/agent.rb index 3fea70c3f1..f9a563d0c4 100644 --- a/lib/fluent/agent.rb +++ b/lib/fluent/agent.rb @@ -134,6 +134,9 @@ def add_match(type, pattern, conf) output.router = @event_router if output.respond_to?(:router=) output.configure(conf) @outputs << output + if output.respond_to?(:outputs) + @outputs.push(*output.outputs) + end @event_router.add_rule(pattern, output) output