Hey guys. I am a newbie and I'm testing out ELK. I am running Filebeat 5.6 on a server and attempting to forward some json files to Logstash (5.6). On the Filebeat server, I see the following errors:
2017/10/03 16:04:19.881406 sync.go:85: ERR Failed to publish events caused by: read tcp filebeat_server_ip:36786->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:19.881497 single.go:91: INFO Error publishing events (retrying): read tcp filebeat_server_ip:36786->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:20.887844 sync.go:85: ERR Failed to publish events caused by: read tcp filebeat_server_ip:36788->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:20.888037 single.go:91: INFO Error publishing events (retrying): read tcp filebeat_server_ip:36788->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:22.897668 sync.go:85: ERR Failed to publish events caused by: read tcp filebeat_server_ip:36790->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:22.897797 single.go:91: INFO Error publishing events (retrying): read tcp filebeat_server_ip:36790->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:23.906004 sync.go:85: ERR Failed to publish events caused by: read tcp filebeat_server_ip:36792->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:23.906103 single.go:91: INFO Error publishing events (retrying): read tcp filebeat_server_ip:36792->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:24.909910 sync.go:85: ERR Failed to publish events caused by: read tcp filebeat_server_ip:36794->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:24.910004 single.go:91: INFO Error publishing events (retrying): read tcp filebeat_server_ip:36794->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:26.915158 sync.go:85: ERR Failed to publish events caused by: read tcp filebeat_server_ip:36796->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:26.915238 single.go:91: INFO Error publishing events (retrying): read tcp filebeat_server_ip:36796->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:27.918650 sync.go:85: ERR Failed to publish events caused by: read tcp filebeat_server_ip:36798->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:27.918745 single.go:91: INFO Error publishing events (retrying): read tcp filebeat_server_ip:36798->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:29.922387 sync.go:85: ERR Failed to publish events caused by: read tcp filebeat_server_ip:36800->logstash_server_ip:5044: read: connection reset by peer
2017/10/03 16:04:29.922579 single.go:91: INFO Error publishing events (retrying): read tcp filebeat_server_ip:36800->logstash_server_ip:5044: read: connection reset by peer
and Logstash is throwing the following errors:
[2017-10-03T16:04:19,880][INFO ][org.logstash.beats.BeatsHandler] Exception: java.util.HashMap cannot be cast to java.lang.String, from: /filebeat_server_ip:36786
[2017-10-03T16:04:20,887][INFO ][org.logstash.beats.BeatsHandler] Exception: java.util.HashMap cannot be cast to java.lang.String, from: /filebeat_server_ip:36788
[2017-10-03T16:04:22,897][INFO ][org.logstash.beats.BeatsHandler] Exception: java.util.HashMap cannot be cast to java.lang.String, from: /filebeat_server_ip:36790
[2017-10-03T16:04:23,905][INFO ][org.logstash.beats.BeatsHandler] Exception: java.util.HashMap cannot be cast to java.lang.String, from: /filebeat_server_ip:36792
[2017-10-03T16:04:24,909][INFO ][org.logstash.beats.BeatsHandler] Exception: java.util.HashMap cannot be cast to java.lang.String, from: /filebeat_server_ip:36794
[2017-10-03T16:04:26,914][INFO ][org.logstash.beats.BeatsHandler] Exception: java.util.HashMap cannot be cast to java.lang.String, from: /filebeat_server_ip:36796
[2017-10-03T16:04:27,918][INFO ][org.logstash.beats.BeatsHandler] Exception: java.util.HashMap cannot be cast to java.lang.String, from: /filebeat_server_ip:36798
[2017-10-03T16:04:29,921][INFO ][org.logstash.beats.BeatsHandler] Exception: java.util.HashMap cannot be cast to java.lang.String, from: /filebeat_server_ip:36800
I am also running Filebeat on two other servers (version 1.3.1) and those json files are making it to Logstash and ElasticSearch just fine.
This has been stumping me for days! Could it have something to do with the json parsing? I will include other info in my replies since I seem to have gone over the character limit.