fluent/fluentd · error · Fluent::ConfigError

with-source-only is not supported on Windows

Error message

with-source-only is not supported on Windows

What it means

Error "with-source-only is not supported on Windows" thrown in fluent/fluentd.

Source

Thrown at lib/fluent/supervisor.rb:706

      # Until we fix the bug of `Fluent::SystemConfig`, we need to use these instance variables.
      @log_path = opt[:log_path]
      @log_rotate_age = opt[:log_rotate_age]
      @log_rotate_size = opt[:log_rotate_size]

      @finished = false
    end

    def run_supervisor(dry_run: false)
      if dry_run
        $log.info "starting fluentd-#{Fluent::VERSION} as dry run mode", ruby: RUBY_VERSION
      end

      if @system_config.workers < 1
        raise Fluent::ConfigError, "invalid number of workers (must be > 0):#{@system_config.workers}"
      end

      if Fluent.windows? && @system_config.with_source_only
        raise Fluent::ConfigError, "with-source-only is not supported on Windows"
      end

      root_dir = @system_config.root_dir
      if root_dir
        if File.exist?(root_dir)
          unless Dir.exist?(root_dir)
            raise Fluent::InvalidRootDirectory, "non directory entry exists:#{root_dir}"
          end
        else
          begin
            FileUtils.mkdir_p(root_dir, mode: @system_config.dir_permission || Fluent::DEFAULT_DIR_PERMISSION)
          rescue => e
            raise Fluent::InvalidRootDirectory, "failed to create root directory:#{root_dir}, #{e.inspect}"
          end
        end
      end

      begin

View on GitHub (pinned to dd45c6e18d)

When it happens

Trigger: Thrown at lib/fluent/supervisor.rb:706 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/d51e6cd114094292. Report an issue: GitHub.