fluent/fluentd · error · Fluent::ConfigError

time_key (#{@time_key.inspect}) is not included in keys (#{@

Error message

time_key (#{@time_key.inspect}) is not included in keys (#{@keys.inspect})

What it means

Error "time_key (#{@time_key.inspect}) is not included in keys (#{@keys.inspect})" thrown in fluent/fluentd.

Source

Thrown at lib/fluent/compat/parser.rb:195

        def patterns
          {'format' => @regexp, 'time_format' => @time_format}
        end
      end

      class ValuesParser < Parser
        include Fluent::Compat::TypeConverter

        config_param :keys, :array, default: []
        config_param :time_key, :string, default: nil
        config_param :null_value_pattern, :string, default: nil
        config_param :null_empty_string, :bool, default: false

        def configure(conf)
          super

          if @time_key && !@keys.include?(@time_key) && @estimate_current_event
            raise Fluent::ConfigError, "time_key (#{@time_key.inspect}) is not included in keys (#{@keys.inspect})"
          end

          if @time_format && !@time_key
            raise Fluent::ConfigError, "time_format parameter is ignored because time_key parameter is not set. at #{conf.inspect}"
          end

          @time_parser = time_parser_create

          if @null_value_pattern
            @null_value_pattern = Regexp.new(@null_value_pattern)
          end

          @mutex = Mutex.new
        end

        def values_map(values)
          record = Hash[keys.zip(values.map { |value| convert_value_to_nil(value) })]

View on GitHub (pinned to dd45c6e18d)

When it happens

Trigger: Thrown at lib/fluent/compat/parser.rb:195 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/f79e1022ab9ab7fe. Report an issue: GitHub.