Method: Fluent::Plugin::TailInput::GroupWatch#construct_group_key

Defined in:
lib/fluent/plugin/in_tail/group_watch.rb

#construct_group_key(named_captures) ⇒ Object



94
95
96
97
98
99
100
101
102
# File 'lib/fluent/plugin/in_tail/group_watch.rb', line 94

def construct_group_key(named_captures)
  match_rule = []
  @group_keys.each { |key|
    match_rule.append(named_captures.fetch(key, GroupWatchParams::DEFAULT_KEY))
  }
  match_rule = match_rule.join(GroupWatchParams::REGEXP_JOIN)

  match_rule
end