一、输入a、标准输入:input{
stdin{
add_field=>{"key"=>"value"}
codec=>"plain"
tags=>["add"]
type=>"std"
}
}
output{
stdout{
codec=>rubydebug{}
}
}其中tags和type是logstash中两个特殊字段。type一般用来指定事件类型,tags是在数据处理过程中,由..
分类:
其他好文 时间:
2017-03-23 16:59:09
阅读次数:
142
一、基本操作1、命令行运行bin/logstash-e‘input{stdin{}}output{stdout{codec=>rubydebug}}‘#bin/logstash-e‘input{stdin{}}output{stdout{codec=>rubydebug}}‘
Logstashstartupcompleted
helloworld
{
"message"=>"helloworld",
"@version"=>"1",
"@timestamp"=..
分类:
其他好文 时间:
2017-03-22 11:43:53
阅读次数:
133