{"record":{"id":"f79e1022ab9ab7fe","repo":"fluent/fluentd","slug":"time-key-time-key-inspect-is-not-included-in","errorCode":null,"errorMessage":"time_key (#{@time_key.inspect}) is not included in keys (#{@keys.inspect})","messagePattern":"time_key \\(#(.+?)\\) is not included in keys \\(#(.+?)\\)","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/compat/parser.rb","lineNumber":195,"sourceCode":"\n        def patterns\n          {'format' => @regexp, 'time_format' => @time_format}\n        end\n      end\n\n      class ValuesParser < Parser\n        include Fluent::Compat::TypeConverter\n\n        config_param :keys, :array, default: []\n        config_param :time_key, :string, default: nil\n        config_param :null_value_pattern, :string, default: nil\n        config_param :null_empty_string, :bool, default: false\n\n        def configure(conf)\n          super\n\n          if @time_key && !@keys.include?(@time_key) && @estimate_current_event\n            raise Fluent::ConfigError, \"time_key (#{@time_key.inspect}) is not included in keys (#{@keys.inspect})\"\n          end\n\n          if @time_format && !@time_key\n            raise Fluent::ConfigError, \"time_format parameter is ignored because time_key parameter is not set. at #{conf.inspect}\"\n          end\n\n          @time_parser = time_parser_create\n\n          if @null_value_pattern\n            @null_value_pattern = Regexp.new(@null_value_pattern)\n          end\n\n          @mutex = Mutex.new\n        end\n\n        def values_map(values)\n          record = Hash[keys.zip(values.map { |value| convert_value_to_nil(value) })]\n","sourceCodeStart":177,"sourceCodeEnd":213,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/compat/parser.rb#L177-L213","documentation":"Error \"time_key (#{@time_key.inspect}) is not included in keys (#{@keys.inspect})\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/compat/parser.rb:195 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dd45c6e18dc7be33b5e5a0f0767bf46307ff5626","analyzedAt":"2026-08-21T16:22:07.332Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}