Log4j输出到Logstash Software caused connection abort: socket write error问题
来源:互联网 发布:中国环保产业数据 编辑:程序博客网 时间:2024/06/14 10:41
log4j:WARN Detected problem with connection: java.net.SocketException: Software caused connection abort: socket write error
logstash配置
input {
stdin { }
log4j { }
}
output {
elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }
}
log4j配置
log4j.rootLogger=DEBUG,socket# for package com.demo.elk, log would be sent to socket appender.#log4j.logger.com.demo.elk=DEBUG, socket# appender socketlog4j.appender.socket=org.apache.log4j.net.SocketAppenderlog4j.appender.socket.Port=4560log4j.appender.socket.RemoteHost=localhostlog4j.appender.socket.layout=org.apache.log4j.PatternLayoutlog4j.appender.socket.layout.ConversionPattern=%d [%-5p] [%l] %m%nlog4j.appender.socket.ReconnectionDelay=100log4j.appender.logstash.LocationInfo=true# appender consolelog4j.appender.console=org.apache.log4j.ConsoleAppenderlog4j.appender.console.target=System.outlog4j.appender.console.layout=org.apache.log4j.PatternLayoutlog4j.appender.console.layout.ConversionPattern=%d [%-5p] [%l] %m%nlog4j版本是1.x
elk的版本都是5.x
logstash的版本换成2.x就没有这个错误
楼下有人评论了
是插件原因,你看看官方的文档就知道了,log5.0之后去除了不少插件。要自己编译安装。在github上有下载,github.com/logstash-plugins/logstash-input-log4j
0 1
- Log4j输出到Logstash Software caused connection abort: socket write error问题
- Software caused connection abort: socket write error
- Software caused connection abort: socket write error
- Software caused connection abort: socket write error
- Software caused connection abort: socket write error
- Software caused connection abort: socket write error
- 异常问题Software caused connection abort: socket write error
- 异常: Software caused connection abort: socket write error
- MESSAGE: Software caused connection abort: socket write error异常
- Official reasons for "Software caused connection abort: socket write error"
- 常见BUG Software caused connection abort: socket write error
- 异常: Software caused connection abort: socket write error
- java.net.SocketException: Software caused connection abort: socket write error
- 报错Software caused connection abort: socket write error
- java.net.SocketException: Software caused connection abort: socket write error
- java.net.SocketException: Software caused connection abort: socket write error
- 常见BUG Software caused connection abort: socket write error
- java.net.SocketException: Software caused connection abort: socket write error
- mysql研究(一)
- tr虚线border在火狐浏览器加载异常问题
- linux 命令 之 scp
- ganglia 配置文件
- Android Notification通知栏消息
- Log4j输出到Logstash Software caused connection abort: socket write error问题
- bzoj 1499: [NOI2005]瑰丽华尔兹
- NoSql简介
- ubuntu下实现FTP共享与用户自行修改密码
- iOS “[App] if we're in the real pre-commit handler we can't actually add any new fences due
- static 关键字和final关键字
- 杨氏矩阵
- 文件上传
- ffmpeg使用二:录屏数据直接264编码