fluent/fluentd · error · Fluent::ConfigError
Section <label #{name}> appears twice
Error message
Section <label #{name}> appears twice What it means
Error "Section <label #{name}> appears twice" thrown in fluent/fluentd.
Source
Thrown at lib/fluent/static_config_analysis.rb:146
end
if l > r
raise Fluent::ConfigError, "greater first_worker_id<#{l}> than last_worker_id<#{r}> specified by <worker> directive is not allowed. Available multi worker assign syntax is <smaller_worker_id>-<greater_worker_id>"
end
[l, r]
end
def static_label_analyse(conf)
ret = []
conf.elements(name: 'label').each do |e|
name = e.arg
if name.empty?
raise ConfigError, 'Missing symbol argument on <label> directive'
end
if @labels[name]
raise ConfigError, "Section <label #{name}> appears twice"
end
l = Elem::Label.new(name, e, static_filter_and_output_analyse(e))
ret << l
@labels[name] = l
end
ret
end
def static_filter_and_output_analyse(conf)
ret = []
conf.elements('filter', 'match').each do |e|
type = e['@type']
if type.nil? || type.empty?
raise Fluent::ConfigError, "Missing '@type' parameter on <#{e.name}> directive"
end
View on GitHub (pinned to dd45c6e18d)
When it happens
Trigger: Thrown at lib/fluent/static_config_analysis.rb:146 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of fluent/fluentd@dd45c6e18d (2026-08-21).
Data as JSON: /api/errors/31dbbfadf66a6e1b.
Report an issue: GitHub.