Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the “path.data” setting
将原先的命令:
./bin/logstash -f ./pipeline/filebeat-to-console.conf
改为:
./bin/logstash -f ./pipeline/filebeat-to-console.conf --path.data=/usr/share/logstash/data_temp
–path.data是指存放数据的路径
报错是因为其他实例已经使用了默认的存放数据路径