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

logstash解析tomcat的catalina.out日志字段

时间:2019-12-04 20:28:54      阅读:313      评论:0      收藏:0      [点我收藏+]

标签:inf   efi   att   exce   put   catalina   logstash   ali   out   

filter {
    mutate {
        remove_field => ["@version","prospector","input","beat","source","offset"]
    }
    grok {
        match => {
            "message" => "%{TIMESTAMP_ISO8601:access_time} %{LOGLEVEL:loglevel} \[%{DATA:exception_info}\] - \<%{MESSAGE:message}\>"
        }
        pattern_definitions => {
            "MESSAGE" => "[\s\S]*"
        }
    }
    date {
        match => [ "access_time","yyyy-MM-dd HH:mm:ss,SSS" ]
    }
    mutate {
        remove_field => ["access_time","[message][0]"]
    }
}

logstash解析tomcat的catalina.out日志字段

标签:inf   efi   att   exce   put   catalina   logstash   ali   out   

原文地址:https://www.cnblogs.com/sanduzxcvbnm/p/11984821.html

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