码迷,mamicode.com
首页 > 其他好文 > 详细

ELK 学习笔记之 Logstash之codec

时间:2017-09-23 18:44:19      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:inpu   ges   gate   col   流程   under   img   ora   color   

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

标签:inpu   ges   gate   col   流程   under   img   ora   color   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!