蔬菜小程序的开发全流程详解
612
2022-10-07
Centos 7.9下Logstash安装
logstash-:~]# tar xvf /tmp/logstash-7.15.1-linux-x86_64.tar.gz -C /[root@ansible ~]# mv /logstash-7.15.1/ /logstash
修改logstash的配置文件vi /logstash/conf/jvm.options1.修改jvm的配置
-Xms1g-Xmx1g
2.修改logstash.yml配置
node.name: logstash-01pipeline.id: mainpipeline.ordered: autopipeline.workers: 10config.reload.automatic: true127.0.0.19201queue.type: memory8-13:-XX:+UseG1GC
3、编写一个pipeline文件
[root@ansible logstash]# cat pipeline.conf/demo-std.conf input { stdin { codec => plain { charset => "UTF-8" } type => "console input" tags => ["console"] }}filter { }output { stdout { codec => rubydebug { } }}
4.启动logstash
bin/logstash -f pipeline.conf/demo-std.conf
输入Hello logstash.
Hello logstash.{ "@version" => "1", "type" => "console input", "tags" => [ [0] "console" ], "@timestamp" => 2021-10-31T12:48:43.770Z, "host" => "ansible", "message" => "Hello logstash."}
ELK
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~