Need to configure Multiple logstash instance on same system

Hi,

I have one logstash instance running on a server in folder /usr/local/logstash
I have configured start-elk.sh and stop-elk.sh script in /usr/local/bin/

From where i start the all services like logstash, kibana, elastic search..

Now the requirment is to run multiple logstash instance and all output should go to ES..

Kindly provide some scripts or please give some hints for where to create another instance of logstash..

Thanks

I have configured start-elk.sh and stop-elk.sh script in /usr/local/bin/

You should manage your daemon processes with SysV init scripts, systemd unit files, or whatever your distribution prescribes.

Kindly provide some scripts or please give some hints for where to create another instance of logstash..

You can run any number of Logstash processes, but depending on how you start it there are different pitfalls. If you want to continue using your *-elk.sh shell scripts (which I strongly discourage you from doing) you probably just need to make sure that logs are written to instance-unique locations and that state files like sincedb are stored in different locations. Without details it's not useful to get into specifics.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.