mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 12:45:47 +01:00
add terminology to README
This commit is contained in:
parent
b8d2110122
commit
ca4a57f178
1 changed files with 8 additions and 0 deletions
|
|
@ -72,6 +72,14 @@ See [reaction.service](./reaction.service) and [reaction.yml](./reaction.yml) fo
|
|||
the working directory of `reaction` will be used to create and read from the embedded [lmdb](https://www.symas.com/lmdb) database.
|
||||
if you don't know where to start it, `/var/lib/reaction` should be a sane choice.
|
||||
|
||||
### terminology
|
||||
|
||||
- **streams** are commands. they're run and their ouptut is captured. *example:* `tail -f /var/log/nginx/access.log`
|
||||
- **filters** belong to a **stream**. they run actions when they match **regexes**.
|
||||
- **regexes** are regexes. *example:* `login failed from user .* from ip <ip>`
|
||||
- **patterns** are also regexes. they're inserted inside **regexes**. example: `ip: ([0-9]{,3}.)[0-9]{,3}`
|
||||
- **actions** are commands. example: `["echo" "matched <ip>"]`
|
||||
|
||||
### compilation
|
||||
|
||||
```shell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue