好的想法是十分钱一打,真正无价的是能够实现这些想法的人。

logstash如何运行多个实例?

Logstash | 作者 401825317 | 发布于2017年07月10日 | 阅读数:14160

Could not find log4j2 configuration at path /elasticserarchcluster/logstash-5.4.
0/config/log4j2.properties. Using default config which logs to console
11:52:55.401 [LogStash::Runner] FATAL logstash.runner - Logstash could not be st
arted because there is already another instance using the configured data direct
ory. If you wish to run multiple instances, you must change the "path.data" set
ting.
已邀请:

zhangrui90 - z

赞同来自: jnuc093 401825317

you must change the "path.data" setting. 这不挺明显吗

wyntergreg

赞同来自: 401825317 laoyang360

path.data,注意权限

jnuc093

赞同来自: 401825317

ps aux|grep logstash
 
kill -9 xxx
意思是已经有个logstash实例已经启动了。我也凭回忆知道有这个。

401825317 - 90后it男

赞同来自:

想启动一个新实例就换个目录就可以了。哈哈哈。也不知道是不是这么搞得

Ning Shiqi

赞同来自:

1499845086(1).jpg

当时logstash grok想处理多个输入源 就是跑不了,没办法,我就用楼主的方法启动多个实例,如下所示

chenshoulu

赞同来自:

可以启动一个logstash,根据type区分,不过logstash会比较吃内存,建议使用filebeat,然后发送数据到logstash然后再到es,也是根据type区分不同的数据

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

换个新路径,5.x版本才改的,以前版本不需要。

要回复问题请先登录注册