fluent/fluentd · error · ConfigError

'<#{proxy.name} ARG>' section requires argument

Error message

'<#{proxy.name} ARG>' section requires argument

What it means

Error "'<#{proxy.name} ARG>' section requires argument" thrown in fluent/fluentd.

Source

Thrown at lib/fluent/config/section.rb:154

            opts = opts.merge(strict: true) if strict_config_value

            if conf.arg == :default
              unless section_params.has_key?(key)
                logger.error "config error in:\n#{conf}" if logger
                raise ConfigError, "'#{key}' doesn't have default value"
              end
            else
              begin
                section_params[key] = self.instance_exec(conf.arg, opts, key, &block)
              rescue ConfigError => e
                logger.error "config error in:\n#{conf}" if logger
                raise e
              end
            end
          end
          unless section_params.has_key?(proxy.argument.first)
            logger.error "config error in:\n#{conf}" if logger # logger should exist, but sometimes it's nil (e.g, in tests)
            raise ConfigError, "'<#{proxy.name} ARG>' section requires argument" + section_stack
          end
          # argument should NOT be deprecated... (argument always has a value: '')
        end

        proxy.params.each_pair do |name, defval|
          varname = name.to_sym
          block, opts = defval
          opts = opts.merge(strict: true) if strict_config_value

          if conf.has_key?(name.to_s) || opts[:alias] && conf.has_key?(opts[:alias].to_s)
            val = if conf.has_key?(name.to_s)
                    conf[name.to_s]
                  else
                    conf[opts[:alias].to_s]
                  end

            if val == :default
              # default value is already set if it exists

View on GitHub (pinned to dd45c6e18d)

When it happens

Trigger: Thrown at lib/fluent/config/section.rb:154 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/95ef6bf8b5587ef3. Report an issue: GitHub.