{"record":{"id":"9d57ed8c9923a438","repo":"fluent/fluentd","slug":"format-parameter-is-required-9d57ed","errorCode":null,"errorMessage":"'format' parameter is required","messagePattern":"'format' parameter is required","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/compat/parser.rb","lineNumber":98,"sourceCode":"          }\n        end\n      end\n\n      def self.register_template(type, template, time_format=nil)\n        # TODO: warn when deprecated to use Plugin.register_parser directly\n        if template.is_a?(Class) || template.respond_to?(:call)\n          Fluent::Plugin.register_parser(type, template)\n        elsif template.is_a?(Regexp)\n          Fluent::Plugin.register_parser(type, Proc.new { RegexpParser.new(template, {'time_format' => time_format}) })\n        else\n          raise ArgumentError, \"Template for parser must be a Class, callable object or regular expression object\"\n        end\n      end\n\n      def self.lookup(format)\n        # TODO: warn when deprecated to use Plugin.new_parser or RegexpParser.new directly\n        if format.nil?\n          raise ConfigError, \"'format' parameter is required\"\n        end\n\n        if format[0] == ?/ && format[format.length-1] == ?/\n          # regexp\n          begin\n            regexp = Regexp.new(format[1..-2])\n            if regexp.named_captures.empty?\n              raise \"No named captures\"\n            end\n          rescue\n            raise ConfigError, \"Invalid regexp '#{format[1..-2]}': #{$!}\"\n          end\n\n          RegexpParser.new(regexp)\n        else\n          # built-in template\n          begin\n            Fluent::Plugin.new_parser(format)","sourceCodeStart":80,"sourceCodeEnd":116,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/compat/parser.rb#L80-L116","documentation":"Error \"'format' parameter is required\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/compat/parser.rb:98 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"}