Indexing delays in elastic search after increase the java heap memory on logstash

Hi Team -

I would like to tune refresh interval and control bulk size parameters on Logstash. Could you please explain more about this parameters.