Trying to run Suricata and getting the following error:
<Error> - [ERRCODE: SC_ERR_LOGDIR_CONFIG(116)] - The logging directory "/data1/suricata-1" supplied by /usr/local/etc/suricata/suricata.yaml (default-log-dir) doesn't exist. Shutting down the engine
but running ls /data1
clearly shows that directory exists
[root@itsec-prod-suri-1 /]# ls /data1
elasticsearch suricata suricata-1
I just recently upgraded from 6.0.3 to 6.0.13, but this was a problem before I upgraded (hoped upgrading would fix the problem, but it didn’t). Also, /data1
is a NAS volume, in case that matters…
Here is my run command:
sudo /usr/local/bin/suricata -c /usr/local/etc/suricata/suricata.yaml -i ixgbe2 -D
and from suricata.yaml
:
default-log-dir: /data1/suricata-1/
...
...
run-as:
user: suricata
group: suricata
I also ran through the commands here, just to make sure all the permissions were good. I am running Suricata on a fully patched CentOS 7.9.2009 system.
TIA!