Hello,
Can anyone offer any advice regarding the above question?
Basically, I have a small program written in python that I would like to start when Suricata triggers a specific alert.
I would like a solution that does not require an interactive logon (such as by reading from stdout for example).
As you can probably tell I’m new to Suricata so I’m struggling to understand how I might achieve this?
The code will run on the same machine that is hosting suricata and I need the code to trigger the instant the alert comes in. Is it possible to configure an eve.json with a Unix domain socket that my code listens on so it will trigger as soon as the alert appears in that log or is there an easier way?
I think with dgram you might run into record size issues, depending on how much metadata you config the alerts to have. unix_stream might be a safer bet.