{"record":{"id":"a376604475a09199","repo":"fluent/fluentd","slug":"either-of-enable-watch-timer-or-enable-stat-watche","errorCode":null,"errorMessage":"either of enable_watch_timer or enable_stat_watcher must be true","messagePattern":"either of enable_watch_timer or enable_stat_watcher must be true","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/plugin/in_tail.rb","lineNumber":144,"sourceCode":"\n    def configure(conf)\n      @variable_store = Fluent::VariableStore.fetch_or_build(:in_tail)\n      compat_parameters_convert(conf, :parser)\n      parser_config = conf.elements('parse').first\n      unless parser_config\n        raise Fluent::ConfigError, \"<parse> section is required.\"\n      end\n\n      (1..Fluent::Plugin::MultilineParser::FORMAT_MAX_NUM).each do |n|\n        parser_config[\"format#{n}\"] = conf[\"format#{n}\"] if conf[\"format#{n}\"]\n      end\n\n      parser_config['unmatched_lines'] = conf['emit_unmatched_lines']\n\n      super\n\n      if !@enable_watch_timer && !@enable_stat_watcher\n        raise Fluent::ConfigError, \"either of enable_watch_timer or enable_stat_watcher must be true\"\n      end\n\n      if @glob_policy == :always && @path_delimiter == ','\n        raise Fluent::ConfigError, \"cannot use glob_policy as always with the default path_delimiter: `,\\\"\"\n      end\n\n      if @glob_policy == :extended && /\\{.*,.*\\}/.match?(@path) && extended_glob_pattern(@path)\n        raise Fluent::ConfigError, \"cannot include curly braces with glob patterns in `#{@path}\\\". Use glob_policy always instead.\"\n      end\n\n      if RESERVED_CHARS.include?(@path_delimiter)\n        rc = RESERVED_CHARS.join(', ')\n        raise Fluent::ConfigError, \"#{rc} are reserved words: #{@path_delimiter}\"\n      end\n\n      @paths = @path.split(@path_delimiter).map(&:strip).uniq\n      if @paths.empty?\n        raise Fluent::ConfigError, \"tail: 'path' parameter is required on tail input\"","sourceCodeStart":126,"sourceCodeEnd":162,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/plugin/in_tail.rb#L126-L162","documentation":"Error \"either of enable_watch_timer or enable_stat_watcher must be true\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/plugin/in_tail.rb:144 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"}