This section describes the possible log messages you may get while using Windows Event Collector (WEC) clustering with syslog-ng Premium Edition (syslog-ng PE), and why the WEC sends them.
-
If Redis is not available during startup, the WEC instance cannot start. In this case, you will get a similar log message:
2020-11-16T21:24:03.843Z FATAL state/redisstate.go:17 RedisConn: Error connecting to Redis {"error": "RedisConn: connection failure: dial tcp 192.168.0.14:6379: connect: connection refused"}
-
If Redis is disconnected, you will get a similar log message:
2020-11-16T21:11:12.818Z ERROR state/redisconn.go:55 RedisConn: dial failed {"error": "dial tcp 192.168.0.14:6379: connect: connection refused"}
-
If you are trying to ping Redis periodically (in this case, the ping period is 1 second), you will get a similar log message:
2020-11-16T21:11:12.818Z DEBUG state/redisconn.go:115 RedisConn is still disconnected 2020-11-16T21:11:13.819Z ERROR state/redisconn.go:55 RedisConn: dial failed {"error": "dial tcp 192.168.0.14:6379: connect: connection refused"}
-
I Redis eventually becomes available, you will get a similar log message:
2020-11-16T21:13:59.829Z DEBUG state/redisconn.go:136 RedisConn is connected 2020-11-16T21:13:59.829Z INFO wec/main.go:120 Redis connection restored, starting server... 2020-11-16T21:13:59.830Z INFO eventstorage/datagrameventstorage.go:34 Trying to connect to unix datagram socket {"unix-datagram": "/home/vagrant/wec_unix_dgram"} 2020-11-16T21:13:59.830Z INFO eventstorage/datagrameventstorage.go:44 Connected to unix datagram socket {"unix-datagram": "/home/vagrant/wec_unix_dgram"}