Multiline filter in logstash 5.5

then can you please take a look at my other post since I did exactly that but its creating two indexes and also other issues I have pointed out in my post

https://discuss.elastic.co/t/logstash-5-5-1-index-creation-issue/96828