I would like to have several distinct logstash instances running on the same server. What is the best way to accomplish this?
I already have a single instance of logstash running, it monitors a large number of files and folders and is performing well.I now have a situation where I need to run a completely different configuration file to perform entirely different activities on a completely different set of folders and files on the same server.
When I try to run the second instance I get this error:
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 9010; nested exception is: java.net.BindException: Address already in use: JVM_Bind
I very much hope that I don't need to extend the paths array on the existing (working) logstash config file and add complexity there to get it to differentiate between inputs all in the same config file. That will get very messy.
Is there a good way to run two or more logstash instances on one machine?