居然是你

使用logstash对日志进行过滤怎么把报错在kibana显示为一行

Logstash | 作者 mzq | 发布于2018年03月28日 | 阅读数:3129

日志示例如下 

[INFO] [2018-03-21 09:46:58] com.caxs.mdd.base.role.web.RoleController.checkRoleResult(56) | 经销商角色查询!
org.apache.shiro.authc.AuthenticationException: 密码错误,请确认登录类别及字母大小写
at com.caxs.mdd.base.shiro.ShiroDbRealm.doGetAuthenticationInfo(ShiroDbRealm.java:160)
at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
at com.caxs.mdd.base.login.web.LoginController.login(LoginController.java:108)
at sun.reflect.GeneratedMethodAccessor597.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
已邀请:

muou

赞同来自:

file{
        path =>"D:/_logs/OA/sc1/SystemOut*.log"
type => "system_out_log"
        start_position=>"beginning"
codec => multiline {
            pattern => "^\["
            negate => true
            what => "previous"
charset=>"GB2312"
        }
    }

用multiline 
 

要回复问题请先登录注册