fluent/fluentd · error · Fluent::ConfigError
greater first_worker_id<#{l}> than last_worker_id<#{r}> spec
Error message
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> What it means
Error "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>" thrown in fluent/fluentd.
Source
Thrown at lib/fluent/static_config_analysis.rb:131
rescue TypeError, ArgumentError
raise Fluent::ConfigError, "worker id should be integer: #{worker_id_str}"
end
if l < 0 || l >= @workers
raise Fluent::ConfigError, "worker id #{l} specified by <worker> directive is not allowed. Available worker id is between 0 and #{@workers-1}"
end
# e.g. specified one worker id like `<worker 0>`
if r.nil?
return [l]
end
if r < 0 || r >= @workers
raise Fluent::ConfigError, "worker id #{r} specified by <worker> directive is not allowed. Available worker id is between 0 and #{@workers-1}"
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))View on GitHub (pinned to dd45c6e18d)
When it happens
Trigger: Thrown at lib/fluent/static_config_analysis.rb:131 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/7ab6393f5e05b68c.
Report an issue: GitHub.