Remove duplicates

I m using logstash to filter logs from jenkins server. I pull out the build.xml files and the problem is the same file is created as two events in elasticsearch. What happens is when the jenkins starts the build the build.xml file gets updated and it is pushed to logstash by filebeat and the file is not completed. So when the next time filebeat checks the file the file is updated with a single line and gets pushed again. So how can i avoid this conflict ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.