119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
# File 'lib/fluent/plugin/in_syslog.rb', line 119
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
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
end
|