Unique identified per line during logstash

Perhaps this filter will help? https://www.elastic.co/guide/en/logstash/current/plugins-filters-uuid.html