mbispham/zeekjs-redis

Error: Redis client error

Opened this issue · 1 comments

Hi,

I try to use this plugin to enable Redis with Zeek...

Redis and Zeek are installed on the same Docker container.

If
redis-cli -h 127.0.0.1 ping
PONG

But when I start the container, here is the issue:
service redis-server start
Starting redis-server: redis-server.
zeek -i ens35 local Log::default_logdir=/opt/zeek/logs LogAscii::use_json=T
error: Redis client error {"label":"index.js","timestamp":"2024-10-02 08:20:59"}
error: Redis client error {"label":"index.js","timestamp":"2024-10-02 08:20:59"}

Hey @AntoninHL - good to meet you and thank you for taking the time to report an issue.

  1. Could you please run the following command to check Redis is listening via a unix socket rather than a TCP socket.

redis-cli -s /var/run/redis/redis.sock ping

  1. It might be worth also checking that Node.js has correct permissions to access the Redis socket file

ls -l $ZEEKJS_REDIS_SOCKET_PATH

If neither of those approaches resolves the issue ping me again and I can have another look.