I followed the Suricata Quickstart recommends testing the ET Open rule with number 2100498 using the curl command
curl http://testmynids.org/uid/index.html
The curl command responses with uid=0(root) gid=0(root) groups=0(root) so I expect to find at least one record written into the /var/log/suricata/fast.log file but it remains always empty
I uploaded the /etc/suricata/suricata.yaml file (suricata_yaml.zip).
Can someone help me to solve this issue?
Best regards.
Dario suricata_yaml.zip (22.4 KB)
Hi Suricatalfon,
I modified suricata.yaml (default-log-dir: /etc/suricata/)
in /etc/suricata I touched the file fast.log (ownership suricata:suricata permission 777)
the command curl http://testmynids.org/uid/index.html replay me with uid=0(root) gid=0(root) groups=0(root) but the fast.log file is still empty.
Thanks so much for your graceful help
Dario
The normal thing is to dump the logs in a different place than /etc/suricata. Normally, when it’s offline, I dump it to a user location so I don’t sudo. When it’s live, with sudo you should have no problem dumping the logs to /var/log/suricata. Anyway, I’m glad everything is going well.
Hi Suricatalfon,
I fixed the issue reinstalling suricata as non root user for the third time and modifying the file /etc/sysconfig/suricata as follow:
OPTIONS="-i ens18 --user suricata --group suricata"
Thanks so much for your preciuos help
Best regards
Dario