fluent/fluentd · error · Fluent::ConfigError

Invalid boolean expression '#{s}' for include_time_key param

Error message

Invalid boolean expression '#{s}' for include_time_key parameter

What it means

Error "Invalid boolean expression '#{s}' for include_time_key parameter" thrown in fluent/fluentd.

Source

Thrown at lib/fluent/compat/set_time_key_mixin.rb:38

require 'fluent/timezone'

module Fluent
  module Compat
    module SetTimeKeyMixin
      include RecordFilterMixin

      attr_accessor :include_time_key, :time_key, :localtime, :timezone

      def configure(conf)
        @include_time_key = false
        @localtime = false
        @timezone = nil

        super

        if s = conf['include_time_key']
          include_time_key = Fluent::Config.bool_value(s)
          raise Fluent::ConfigError, "Invalid boolean expression '#{s}' for include_time_key parameter" if include_time_key.nil?

          @include_time_key = include_time_key
        end

        if @include_time_key
          @time_key     = conf['time_key'] || 'time'
          @time_format  = conf['time_format']

          if    conf['localtime']
            @localtime = true
          elsif conf['utc']
            @localtime = false
          end

          if conf['timezone']
            @timezone = conf['timezone']
            Fluent::Timezone.validate!(@timezone)
          end

View on GitHub (pinned to dd45c6e18d)

When it happens

Trigger: Thrown at lib/fluent/compat/set_time_key_mixin.rb:38 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/18be33e6c2915e48. Report an issue: GitHub.