默认情况下,只可以运行一个实例
[root@localhost config]# /opt/logstash-6.5.1/bin/logstash -f ./crm.conf Sending Logstash logs to /opt/logstash-6.5.1/logs which is now configured via log4j2.properties [2018-12-17T16:25:05,139][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified [2018-12-17T16:25:05,164][FATAL][logstash.runner ] 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. [2018-12-17T16:25:05,173][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
哈哈哈 直接改运行命令,指定path.data到其他目录即可
[root@localhost config]# /opt/logstash-6.5.1/bin/logstash -f ./crm.conf --path.data=/root/ Sending Logstash logs to /opt/logstash-6.5.1/logs which is now configured via log4j2.properties [2018-12-17T16:32:31,654][INFO ][logstash.setting.writabledirectory] Creating directory {:setting=>"path.queue", :path=>"/root/queue"} [2018-12-17T16:32:31,662][INFO ][logstash.setting.writabledirectory] Creating directory {:setting=>"path.dead_letter_queue", :path=>"/root/dead_letter_queue"} [2018-12-17T16:32:32,051][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified [2018-12-17T16:32:32,067][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.5.1"}
继续阅读
- 我的QQ
- QQ扫一扫
-
- 我的头条
- 头条扫一扫
-
评论