Hi @basha5,
There is no specific command in logstash to check the size of file. However, i found a post where they have mentioned that we can do the same through aggregate filter in logstash to calculate the file size with code block.
Please refer below post it may be helpful for you.
Regards,
Harsh Bajaj