{"record":{"id":"395925fc5530b9e6","repo":"fluent/fluentd","slug":"recommend-adding-file-dirname-element-pos-file","errorCode":null,"errorMessage":"Recommend adding #{File.dirname(element['pos_file'])} to the exclusion path of your antivirus software on Windows","messagePattern":"Recommend adding #(.+?) to the exclusion path of your antivirus software on Windows","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/fluent/supervisor.rb","lineNumber":835,"sourceCode":"      @system_config = build_system_config(@conf)\n\n      # `<system> umask` sets the process umask, just like the `--umask` command\n      # line option. The command line option takes precedence when both are given.\n      if @system_config.umask && !@cl_opt.key?(:chumask)\n        @chumask = @system_config.umask\n      end\n\n      $log.info :supervisor, 'parsing config file is succeeded', path: @config_path\n\n      build_additional_configurations(parsed_files) do |additional_conf|\n        @conf += additional_conf\n      end\n\n      if Fluent.windows?\n        @conf.elements.each do |element|\n          next unless element.name == 'source'\n          if element['@type'] == 'tail' && element['pos_file']\n            $log.warn(\"Recommend adding #{File.dirname(element['pos_file'])} to the exclusion path of your antivirus software on Windows\")\n          else\n            storage = element.elements.find { |v| v.name == 'storage' and v['@type'] == 'local' }\n            if storage\n              $log.warn(\"Recommend adding #{File.dirname(storage['path'])} to the exclusion path of your antivirus software on Windows\")\n            end\n          end\n        end\n      end\n\n      @libs.each do |lib|\n        require lib\n      end\n\n      @plugin_dirs.each do |dir|\n        if Dir.exist?(dir)\n          dir = File.expand_path(dir)\n          Fluent::Plugin.add_plugin_dir(dir)\n        end","sourceCodeStart":817,"sourceCodeEnd":853,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/supervisor.rb#L817-L853","documentation":"Error \"Recommend adding #{File.dirname(element['pos_file'])} to the exclusion path of your antivirus software on Windows\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/supervisor.rb:835 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"}