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.
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
Thank you very much
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.