in lib/logstash/outputs/amazon_es/common.rb [256:276]
def get_event_type(event)
type = if @document_type
event.sprintf(@document_type)
else
if client.maximum_seen_major_version < 6
event.get("type") || DEFAULT_EVENT_TYPE_ES6
elsif client.maximum_seen_major_version == 6
DEFAULT_EVENT_TYPE_ES6
else
DEFAULT_EVENT_TYPE_ES7
end
end
if !(type.is_a?(String) || type.is_a?(Numeric))
@logger.warn("Bad event type! Non-string/integer type value set!", :type_class => type.class, :type_value => type.to_s, :event => event)
end
type.to_s
end