Logs bieng missed by logstash

I am collecting logs from a tcp input plugin but some logs get lost and there is no error.

How do you know they are being lost?

because they get printed on console when i run my application.

some of them get to logstash and some don't. and there is no connectivity error etc.