Hi.
I’m trying to run suricata at startup, so to be able to monitor the endpoints through Wazuh platform, but the execution of the suricata service seems to fail and stops.
In particular, if I open “services.msc” and search for Suricata service, it’s always not executing.
If I try to start it a popup message appears saying: “The Suricata service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other service or programs”.
I installed Suricata stable 6.0.9, and used the default configuration.
So everything is installed in C:\Program Files\Suricata (logs, rules, etc.).
I only changed the HOME_NET value in the suricata.yaml file to match my network configuration.
I tested the program by running (as administrator) the following code:
suricata -c suricata.yaml -i 192.168.50.99
which gives the following output:
23/1/2023 -- 16:15:19 - <Info> - Running as service: no
23/1/2023 -- 16:15:19 - <Info> - translated 192.168.50.99 to pcap device \Device\NPF_{61E3B87F-E9C0-4DCA-8DFA-E9F9FFB543CC}
23/1/2023 -- 16:15:19 - <Notice> - This is Suricata version 6.0.9 RELEASE running in SYSTEM mode
23/1/2023 -- 16:15:19 - <Warning> - [ERRCODE: SC_ERR_CONF_YAML_ERROR(242)] - App-Layer protocol ikev2 enable status not set, so enabling by default. This behavior will change in Suricata 7, so please update your config. See ticket #4744 for more details.
23/1/2023 -- 16:15:19 - <Warning> - [ERRCODE: SC_ERR_CONF_YAML_ERROR(242)] - App-Layer protocol sip enable status not set, so enabling by default. This behavior will change in Suricata 7, so please update your config. See ticket #4744 for more details.
23/1/2023 -- 16:15:19 - <Warning> - [ERRCODE: SC_ERR_CONF_YAML_ERROR(242)] - App-Layer protocol rdp enable status not set, so enabling by default. This behavior will change in Suricata 7, so please update your config. See ticket #4744 for more details.
23/1/2023 -- 16:15:19 - <Warning> - [ERRCODE: SC_ERR_INVALID_ARGUMENT(13)] - No output module named eve-log.ike
23/1/2023 -- 16:15:19 - <Warning> - [ERRCODE: SC_ERR_INVALID_ARGUMENT(13)] - No output module named eve-log.quic
23/1/2023 -- 16:15:19 - <Warning> - [ERRCODE: SC_ERR_FOPEN(44)] - Error opening file: "C:\Program Files\Suricata\\\threshold.config": No such file or directory
23/1/2023 -- 16:15:19 - <Notice> - all 5 packet processing threads, 4 management threads initialized, engine started.
And it starts writing in the eve.json file, which is the file I’m interesting in integrating in Wazuh.
However, the service does not run by itself.
I installed the service through this command:
suricata -c suricata.yaml -i 192.168.50.99 -l ./log -knone -vvv --service-install
I even tried to delete the service with:
sc delete suricata
and the creating it again with the command above, but it still shows the same error when trying to execute the service.
Does anyone have any suggestion on how to resolve this issue?