grafana/loki · error · LogStash::ConfigurationError

Min delay should be less than Max delay, currently 'Min dela

Error message

Min delay should be less than Max delay, currently 'Min delay is #{@min_delay} and Max delay is #{@max_delay}'

What it means

Error "Min delay should be less than Max delay, currently 'Min delay is #{@min_delay} and Max delay is #{@max_delay}'" thrown in grafana/loki.

Source

Thrown at clients/cmd/logstash/lib/logstash/outputs/loki.rb:71

  ## 'An array of fields to map to structure metadata, if defined only fields in this list will be mapped.'
  config :metadata_fields, :validate => :array, :default => [], :required => false

  ## 'Backoff configuration. Maximum backoff time between retries. Default 300s'
  config :max_delay, :validate => :number, :default => 300, :required => false

  ## 'Backoff configuration. Maximum number of retries to do'
  config :retries, :validate => :number, :default => 10, :required => false

  attr_reader :batch
  public
  def register
    @uri = URI.parse(@url)
    unless @uri.is_a?(URI::HTTP) || @uri.is_a?(URI::HTTPS)
      raise LogStash::ConfigurationError, "url parameter must be valid HTTP, currently '#{@url}'"
    end

    if @min_delay > @max_delay
      raise LogStash::ConfigurationError, "Min delay should be less than Max delay, currently 'Min delay is #{@min_delay} and Max delay is #{@max_delay}'"
    end

    @logger.info("Loki output plugin", :class => self.class.name)

    # initialize Queue and Mutex
    @entries = Queue.new
    @mutex = Mutex.new
    @stop = false

    # create nil batch object.
    @batch = nil

    # validate certs
    if ssl_cert?
      load_ssl
      validate_ssl_key
    end

View on GitHub (pinned to 24cfedd4f6)

When it happens

Trigger: Thrown at clients/cmd/logstash/lib/logstash/outputs/loki.rb:71 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of grafana/loki@24cfedd4f6 (2026-08-15). Data as JSON: /api/errors/4ee8d05e22625d3c. Report an issue: GitHub.