3

logstash安装

 2 years ago
source link: https://wakzz.cn/2019/01/15/logstash/%E5%AE%89%E8%A3%85/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

logstash安装

祈雨的博客
2019-01-15

Github

官网下载

命令行运行

./bin/logstash -e 'input { stdin { } } output { stdout {} }'

等待数秒logstash输出Successfully started Logstash API endpoint {:port=>9600}的字样时表示logstash启动成功。

控制台输入hello world后回车,logstash控制台输出如下内容:

{
"@version" => "1",
"host" => "VM_0_10_centos",
"@timestamp" => 2019-01-15T13:07:10.186Z,
"message" => "hello world"
}

配置文件运行

./bin/logstash -f file

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK