{"record":{"id":"a548adaa3f3879e4","repo":"fluent/fluentd","slug":"send-keepalive-packet-is-available-for-tcp-tls","errorCode":null,"errorMessage":"send_keepalive_packet is available for tcp/tls","messagePattern":"send_keepalive_packet is available for tcp/tls","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/plugin/in_syslog.rb","lineNumber":151,"sourceCode":"      if @include_source_host\n        if @source_address_key\n          raise Fluent::ConfigError, \"specify either source_address_key or include_source_host\"\n        end\n        @source_address_key = @source_host_key\n      end\n      if @source_hostname_key\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\n      @_event_loop_run_timeout = @blocking_timeout\n\n      protocol = @protocol_type || @transport_config.protocol\n      if @send_keepalive_packet && protocol == :udp\n        raise Fluent::ConfigError, \"send_keepalive_packet is available for tcp/tls\"\n      end\n    end\n\n    def multi_workers_ready?\n      true\n    end\n\n    def zero_downtime_restart_ready?\n      true\n    end\n\n    def start\n      super\n\n      log.info \"listening syslog socket on #{@bind}:#{@port} with #{@protocol_type || @transport_config.protocol}\"\n      case @protocol_type || @transport_config.protocol\n      when :udp then start_udp_server\n      when :tcp then start_tcp_server","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/plugin/in_syslog.rb#L133-L169","documentation":"Error \"send_keepalive_packet is available for tcp/tls\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/plugin/in_syslog.rb:151 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"}