{"record":{"id":"18be33e6c2915e48","repo":"fluent/fluentd","slug":"invalid-boolean-expression-s-for-include-time","errorCode":null,"errorMessage":"Invalid boolean expression '#{s}' for include_time_key parameter","messagePattern":"Invalid boolean expression '#(.+?)' for include_time_key parameter","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/compat/set_time_key_mixin.rb","lineNumber":38,"sourceCode":"require 'fluent/timezone'\n\nmodule Fluent\n  module Compat\n    module SetTimeKeyMixin\n      include RecordFilterMixin\n\n      attr_accessor :include_time_key, :time_key, :localtime, :timezone\n\n      def configure(conf)\n        @include_time_key = false\n        @localtime = false\n        @timezone = nil\n\n        super\n\n        if s = conf['include_time_key']\n          include_time_key = Fluent::Config.bool_value(s)\n          raise Fluent::ConfigError, \"Invalid boolean expression '#{s}' for include_time_key parameter\" if include_time_key.nil?\n\n          @include_time_key = include_time_key\n        end\n\n        if @include_time_key\n          @time_key     = conf['time_key'] || 'time'\n          @time_format  = conf['time_format']\n\n          if    conf['localtime']\n            @localtime = true\n          elsif conf['utc']\n            @localtime = false\n          end\n\n          if conf['timezone']\n            @timezone = conf['timezone']\n            Fluent::Timezone.validate!(@timezone)\n          end","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/compat/set_time_key_mixin.rb#L20-L56","documentation":"Error \"Invalid boolean expression '#{s}' for include_time_key parameter\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/compat/set_time_key_mixin.rb:38 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"}