fluent/fluentd · error · Fluent::ConfigError
specify either source_address_key or include_source_host
Error message
specify either source_address_key or include_source_host
What it means
Error "specify either source_address_key or include_source_host" thrown in fluent/fluentd.
Source
Thrown at lib/fluent/plugin/in_syslog.rb:135
end
def configure(conf)
compat_parameters_convert(conf, :parser)
super
if conf.has_key?('priority_key')
log.warn "priority_key is deprecated. Use severity_key instead"
end
@use_default = false
@parser = parser_create
@parser_parse_priority = @parser.respond_to?(:with_priority) && @parser.with_priority
if @include_source_host
if @source_address_key
raise Fluent::ConfigError, "specify either source_address_key or include_source_host"
end
@source_address_key = @source_host_key
end
if @source_hostname_key
if @resolve_hostname.nil?
@resolve_hostname = true
elsif !@resolve_hostname # user specifies "false" in config
raise Fluent::ConfigError, "resolve_hostname must be true with source_hostname_key"
end
end
@_event_loop_run_timeout = @blocking_timeout
protocol = @protocol_type || @transport_config.protocol
if @send_keepalive_packet && protocol == :udp
raise Fluent::ConfigError, "send_keepalive_packet is available for tcp/tls"
end
endView on GitHub (pinned to dd45c6e18d)
When it happens
Trigger: Thrown at lib/fluent/plugin/in_syslog.rb:135 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of fluent/fluentd@dd45c6e18d (2026-08-21).
Data as JSON: /api/errors/d496a839149f049e.
Report an issue: GitHub.