Suricata Fails to Create Socket

Hi Darren, it looks like there are 2 different issues here:

  1. if you want to have both unix socket output and regular file output, you need to duplicate the entire eve-log config block and set unix socket in one and regular in the other one.

  2. suricata doesn’t create the unix socket, but instead if connects to an existing one.

simple test:

nc -U -l /tmp/mysocket

yaml

  - eve-log:
      enabled: yes
      filetype: unix_stream #regular #regular|syslog|unix_dgram|unix_stream|redis
      filename: /tmp/mysocket

Now run Suricata and you should see eve records on the console of your nc command.

1 Like