fluent/fluentd · error · Fluent::ConfigParseError

#{message} at #{error_sample}

Error message

#{message} at #{error_sample}

What it means

Error "#{message} at #{error_sample}" thrown in fluent/fluentd.

Source

Thrown at lib/fluent/config/basic_parser.rb:92

      def check(pattern)
        @ss.check(pattern)
      end

      def line_end
        skip(LINE_END)
      end

      def spacing
        skip(SPACING)
      end

      def spacing_without_comment
        skip(SPACING_WITHOUT_COMMENT)
      end

      def parse_error!(message)
        raise ConfigParseError, "#{message} at #{error_sample}"
      end

      def error_sample
        pos = @ss.pos

        lines = @ss.string.lines.to_a
        lines.each_with_index { |line, ln|
          if line.size >= pos
            msgs = ["line #{ln + 1},#{pos}\n"]

            if ln > 0
              last_line = lines[ln - 1]
              msgs << "%3s: %s" % [ln, last_line]
            end

            msgs << "%3s: %s" % [ln + 1, line]
            msgs << "\n     #{'-' * pos}^\n"

View on GitHub (pinned to dd45c6e18d)

When it happens

Trigger: Thrown at lib/fluent/config/basic_parser.rb:92 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/7c56504fdc886181. Report an issue: GitHub.