Logstash duplicate line / send log with elasticsearch:9200 no response

Hi,

I use Logstash with CSV files sources.
What happens if logstash can not contact ElasticSearch on 9200 port.
They sent the logs will be reissued , or the logs are lost ?

Dy ou know a concept of primary key to reject duplicates lines ?
I find in another topic a system of hash Logstash Duplicate message

Regards

This should explain that part - How Logstash Works | Logstash Reference [8.11] | Elastic