首页 > 其他 > 详细

ELK 学习笔记之 Logstash之codec

时间:2017-09-23 17:50:08      阅读:219      评论:0      收藏:0      [点我收藏+]

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

 

}

技术分享

 

ELK 学习笔记之 Logstash之codec

原文:http://www.cnblogs.com/AK47Sonic/p/7581640.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!