in lib/logstash/outputs/kusto.rb [219:239]
def close
@flusher.stop unless @flusher.nil?
@cleaner.stop unless @cleaner.nil?
@io_mutex.synchronize do
@logger.debug('Close: closing files')
@files.each do |path, fd|
begin
fd.close
@logger.debug("Closed file #{path}", fd: fd)
kusto_send_file(path)
rescue Exception => e
@logger.error('Exception while flushing and closing files.', exception: e)
end
end
end
@ingestor.stop unless @ingestor.nil?
end