{"record":{"id":"35db81e826c8492a","repo":"fluent/fluentd","slug":"client-sections-required-if-allow-anonymous-sour","errorCode":null,"errorMessage":"<client> sections required if allow_anonymous_source disabled","messagePattern":"<client> sections required if allow_anonymous_source disabled","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/plugin/in_forward.rb","lineNumber":131,"sourceCode":"      if @source_hostname_key\n        # TODO: add test\n        if @resolve_hostname.nil?\n          @resolve_hostname = true\n        elsif !@resolve_hostname # user specifies \"false\" in config\n          raise Fluent::ConfigError, \"resolve_hostname must be true with source_hostname_key\"\n        end\n      end\n      @enable_field_injection = @source_address_key || @source_hostname_key\n\n      raise Fluent::ConfigError, \"'tag' parameter must not be empty\" if @tag && @tag.empty?\n      raise Fluent::ConfigError, \"'add_tag_prefix' parameter must not be empty\" if @add_tag_prefix && @add_tag_prefix.empty?\n\n      if @security\n        if @security.user_auth && @security.users.empty?\n          raise Fluent::ConfigError, \"<user> sections required if user_auth enabled\"\n        end\n        if !@security.allow_anonymous_source && @security.clients.empty?\n          raise Fluent::ConfigError, \"<client> sections required if allow_anonymous_source disabled\"\n        end\n\n        @nodes = []\n\n        @security.clients.each do |client|\n          if client.host && client.network\n            raise Fluent::ConfigError, \"both of 'host' and 'network' are specified for client\"\n          end\n          if !client.host && !client.network\n            raise Fluent::ConfigError, \"Either of 'host' and 'network' must be specified for client\"\n          end\n          source = nil\n          if client.host\n            begin\n              source = IPSocket.getaddress(client.host)\n            rescue SocketError\n              raise Fluent::ConfigError, \"host '#{client.host}' cannot be resolved\"\n            end","sourceCodeStart":113,"sourceCodeEnd":149,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/plugin/in_forward.rb#L113-L149","documentation":"Error \"<client> sections required if allow_anonymous_source disabled\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/plugin/in_forward.rb:131 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"}