Logstash之codec:
Logstash处理流程:
input=》decode=》filter=》encode=》output
分类:
Plain编码:
input{
stdin{
codec => plain
}
}
output{
stdout{}
}
json编码:
input{
stdin{
}
}
output{
stdout{
codec => json
}
}
multiline 编码:
input{
stdin{
codec => multiline{
pattern => "^\["
negate => true
what => "previous"
}
}
}
output{
stdout{}
}