in lib/logstash/outputs/kusto.rb [199:218]
def multi_receive_encoded(events_and_encoded)
encoded_by_path = Hash.new { |h, k| h[k] = [] }
events_and_encoded.each do |event, encoded|
file_output_path = event_path(event)
encoded_by_path[file_output_path] << encoded
end
@io_mutex.synchronize do
encoded_by_path.each do |path, chunks|
fd = open(path)
chunks.each { |chunk| fd.write(chunk) }
fd.flush unless @flusher && @flusher.alive?
end
close_stale_files if @stale_cleanup_type == 'events'
end
end