How can I setup multiple logstash instance in one machine?
My idea is to gather logs and then forward the data to two elasticsearch host machine as well.
If you'll ask why not to config in just single logstash with 2 elasticsearch output it that I don't want to stop the sending of data if one of the elasticsearch fail.
Or is there a way to just forward the data from 1 elasticsearch host to another elasticsearch host?
i already tried this guide of yours [SOLVED] Multiple Instances for Logstash but it doesn't work for me. I tried to check the logstash log but there's no logfiles
I'm currently using logstash 5.5.
First i just make a copy of my logstash. So it will reside at /etc/logstash2.
Make a data path /var/lib/logstash2 ang log path /var/log/logstash2.
Then edit the yml config.
On the startup options I change the LS_SETTINGS_DIR to /etc/logstash2.
Change the SERVICE_NAME and SERVICE_DESCRIPTION to logstash2.
I run the/bin/system-install /etc/logstash2 <--i don't know if this is right.
Then run the service logstash2 start command.
I run successfully based on the service logstash2 status.
BUT, there's no logs produced in /var/log/logstash2 and there's no data was sent to my output which is elastissearch.
After which i tried to run my main logstash but it ended up broke as well. On the log of my main logstash, it says that it cannot find the config file or config file doesn't exist.
So, i uninstall my main logstash thru yum remove logstash and install it again. Then my main logstash came back to work again.
Sadly, I just cant run multiple logstash as of this moment.
config.reload.automatic: true means that if I edit the logstash configuration, the updated pipeline will automatically reload with the new configuration, without having to stop/restart logstash.
I've just extracted LS to a new location and in the pipeline I've set to listen to a different port.
I'm currently running 3 instances on the same server.
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.