我将在您的logstash elasticsearch输出部分中使用document_id参数:
document_id
Value type is stringDefault value is nil索引的文档ID。用于覆盖具有相同ID的Elasticsearch中的现有条目。
https://www.elastic.co/guide/zh-CN/logstash/current/plugins-outputs-
elasticsearch.html#plugins-outputs-elasticsearch-
document_id
我认为该条目应如下所示:
document_id => "%{fingerprint}"它使用logstash的sprintf格式将字符串替换为字段的内容:
https://www.elastic.co/guide/zh-CN/logstash/current/event-dependent-
configuration.html#sprintf



