That solely depends on the id field of the ElasticSearch documents.
If you let ES generate it's own IDs or you generate random IDs yourself for each log, ES will treat them as different documents that happen to have the same content, and it will show on Kibana as extra records.
If you generate a preset ID for each log based on some existing log field (e.g. timestamp, if it exists) or other method, then ES should just overwrite the previous document and bump it's version number, resulting in no duplicate records.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.