可以参考 Package Repositories
[root@h102 ~]# /opt/logstash/bin/logstash -e 'input { stdin { } } output { stdout {} }'
Settings: Default filter workers: 1
Logstash startup completed
hello world
2015-12-23T03:26:40.336Z h102.temp hello world
abc
2015-12-23T03:27:03.461Z h102.temp abc
123
2015-12-23T03:27:46.412Z h102.temp 123
Logstash shutdown completed
[root@h102 ~]# 使用 -e 可以直接在命令中指定配置
使用 CTRL-D 进行终止
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。