Unique File Identifier in Filebeat

I am struggling with Filebeat processing all logs again for every Pod Restart in Kubernetes.

I have shared my problem here : Duplicate Entries in Filebeat Registry File For Kubernetes Pod Restart