Reputation: 1794
I'm using ELK stack on Bitnami service and using Serilog to send log to Logstash but when I send one log, In kibana I will see two record with different _id a the same message.
This is my logstash file. One more question, my log model have Id field, this is unique. How can I set it to document_id.
Upvotes: 0
Views: 478
Reputation: 4072
If you have a unique id in a field you can use the document_id option on the elasticsearch output with a sprintf reference to the field
document_id => "%{Id}"
Upvotes: 1