Rules location
Depending on which way you installed Panther there are differing locations of the rule files.
When using docker-compose.yml
A docker volume will have been created, the name is comprised of two parts.
<directory-name>_rules_vol
For example if your docker-compose.yml
is in a directory called panther
then the docker volume will be called panther_rules-vol
e.g.
[root@localhost ~]# ls -l /var/lib/docker/volumes/panther-core_rules-vol/_data/
total 14
-rw-r--r-- 1 ansible ansible 588 Jul 7 2020 http.rules.yml
-rw-r--r-- 1 ansible ansible 860 Jul 7 2020 server.rules.yml
-rw-r--r-- 1 ansible ansible 2256 Jul 7 2020 syslogd.rules.yml
When using app.panther.support
The rules are not directly accessible to the end user.
When running the source code
The rules are located under rules/
e.g.
[root@localhost panther-core]# ls -l rules/
total 23
-rw-r--r-- 1 vinceoa vinceoa 588 Feb 23 11:36 http.rules.yml
-rw-r--r-- 1 vinceoa vinceoa 815 Mar 26 16:12 server.rules.yml
-rw-r--r-- 1 vinceoa vinceoa 2256 Feb 23 11:36 syslogd.rules.yml
Rules format
The server.rules.yml
has three main sections
globals:
groups:
schedules: