Logstash is not ingesting data in real time

Hi Everyone,

I am ingesting data from thousands of file with logstash into elasticsearch and files are parallely updating and updating records are not ingesting in real time.
Please help me out what i need to change setting of logstash to get real time impact of data into elasticsearch

Thanks

Use filebeat to forward data to logstash