logstash6.5.1 多实例运行

IT
IT
IT
405
文章
1
评论
2020年5月25日11:48:10 评论 8,394 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
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
普通用户安装Jenkins ELK

普通用户安装Jenkins

安装Java $ sudo yum -y install java-1.8.0-openjdk* 安装rpm源 $ wget https://mirrors.tuna.tsinghua.edu.cn/...
jenkinsfile集成gitlabapi ELK

jenkinsfile集成gitlabapi

gitlab主账号下获取token Jenkins配置凭据 环境版本库 环境版本库的好处是可以把yaml配置文件放在版本目录下,调用gitlabapi自动更新相关内容。
Docker安装OpenLDAP ELK

Docker安装OpenLDAP

安装docker # cd /opt # yum -y install git # git clone --depth=1 https://github.com/cncentoscn/setuptoo...

您必须才能发表评论!