Pipeline batch size in logstash

How to give pipeline batch size when we run logstash as a service.
When we run as a instance we can give as like -b, --pipeline-batch-size
But when running as service how to give.

Thanks in advance.

If you're on Linux and have installed Logstash through a package manager there should be a settings file /etc/sysconfig/logstash where you can set the LS_OPTS environment variable. In that variable you can use the -b option and put the batch size there. This file is read when running logstash as a service. You can also change the heap size here as well and a few other things.

EDIT: /etc/sysconfig/logstash is the location for Red Hat systems. For Debian it's located in /etc/default/logstash

1 Like

Thank you very much