Aggregate filter doesn't find last line of file

I did both ( pipeline.workers: 1 pipeline.java_execution: false on my logstash.yml , but still the same results. Is there any better ways to directly read the 'last line' from a log file?