logstash6.5.1 多实例运行

IT
IT
IT
335
文章
1
评论
2020年5月25日11:48:10 评论 1,381 1379字阅读4分35秒

默认情况下,只可以运行一个实例

[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扫一扫
  • weinxin
  • 我的头条
  • 头条扫一扫
  • weinxin
IT
  • 本文由 发表于 2020年5月25日11:48:10
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
Eureka服务剔除下线 ELK

Eureka服务剔除下线

格式 curl -X PUT "http://ip:port/eureka/apps/{application}/{instance}/status?value=OUT_OF_SERVICE" 示例 ...