ELK 学习笔记之 Logstash之codec配置

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{}

 

}

 

posted @ 2017-09-23 16:39  AK47Sonic  阅读(513)  评论(0编辑  收藏  举报