Seems parameters '--unix-socket' and '--af-apcket' are incompatible?

OK, thanks.

@ I think we can improve on that, in the meantime I would suggest to set the unix socket in the suricata.yaml itself.

Do you mean set like this in suricata.yaml?, this way can suricatasc work as normal? I have to use suricatasc to get all packets number in our project

unix-command:
    enabled: yes
    filename: custom.socket