Appearance
Events, traffic log, SIEM and enrichment Since v0.2
These settings control what is stored about requests and where it goes. Bounds are in Limits and defaults.
For the structure of the file, see Configuration file. Defaults of limits are also listed in Limits and defaults. A dash in Default means the code sets no default value (the setting is empty or off).
Events
| Key | Type | Default | Allowed values / range | Meaning | Guide page |
|---|---|---|---|---|---|
events | object | — | — | Group of settings: events. | Logging and masking |
events.capture_body | size | the application's policy.limits.request_body | up to 64KiB | capture_body is the request body bytes kept per event; 0 keeps none. | Logging and masking |
events.retention | duration | 720h | up to 26280h | events older than this are deleted | Logging and masking |
events.max_events | integer | 1000000 | up to 100000000 | the oldest events beyond this are deleted | Logging and masking |
events.max_bytes | size | 2GiB | 1MiB to 16TiB | the oldest events beyond this total size are deleted | Logging and masking |
Traffic log
| Key | Type | Default | Allowed values / range | Meaning | Guide page |
|---|---|---|---|---|---|
traffic | object | — | — | Group of settings: traffic. | Traffic log |
traffic.mode | string | all | — | mode selects the requests recorded: all (default), sample (sample_rate percent of them, chosen by request ID) or off. | Traffic log |
traffic.sample_rate | integer | 10 | 1 to 100 | sample_rate is the percentage of requests recorded in sample mode (1 to 100). | Traffic log |
traffic.retention | duration | 168h | — | records older than this are deleted | Traffic log |
traffic.max_records | integer | 50000000 | up to 1000000000 | the oldest records beyond this are deleted | Traffic log |
traffic.max_bytes | size | 5GiB | — | the oldest records beyond this total size are deleted | Traffic log |
traffic.body | size | — | — | body is the request body bytes kept per record; 0 keeps none. | Traffic log |
traffic.response_body | boolean | — | — | response_body asks inspection for every application's response bodies to record them (bounded by the response scope's max_body). | Traffic log |
SIEM export
| Key | Type | Default | Allowed values / range | Meaning | Guide page |
|---|---|---|---|---|---|
siem | object | — | — | Group of settings: siem. | SIEM export |
siem.destinations[] | list of object | — | — | Group of settings: destinations. | SIEM export |
siem.destinations[].name | string | — | — | The name that identifies this entry. | SIEM export |
siem.destinations[].address | string | — | — | host:port | SIEM export |
siem.destinations[].transport | string | — | — | tls (default), tcp or udp | SIEM export |
siem.destinations[].format | string | — | — | json (default), cef or leef. | SIEM export |
siem.destinations[].streams | list of string | both | — | security, audit (default: both) | SIEM export |
siem.destinations[].applications | list of string | — | — | security events of these applications only; empty: all | SIEM export |
siem.destinations[].actions | list of string | — | — | security events with these actions only (block, log, ...); empty: all | SIEM export |
siem.destinations[].facility | string | — | — | Syslog facility: local0 (default) to local7, user or daemon. | SIEM export |
siem.destinations[].tls | object | — | — | Group of settings: tls. | SIEM export |
siem.destinations[].tls.ca | string | — | — | PEM CA bundle; empty: the system's roots | SIEM export |
siem.destinations[].tls.server_name | string | — | — | empty: the host of address | SIEM export |
siem.destinations[].tls.cert | string | — | — | client certificate (mutual TLS), with key | SIEM export |
siem.destinations[].tls.key | string | — | — | Name or path of the key. | SIEM export |
siem.destinations[].include_capture | boolean | — | — | include_capture adds each security event's captured request and trace to its message (json format; still fitted to the message size limit). | SIEM export |
Enrichment
| Key | Type | Default | Allowed values / range | Meaning | Guide page |
|---|---|---|---|---|---|
enrichment | object | — | — | Enrichment added to events and traffic records when they are stored. | Fingerprints and enrichment |
enrichment.enabled | boolean | — | — | On unless set to false. | Fingerprints and enrichment |
enrichment.city_database | string | — | — | MMDB city database; empty: none | Fingerprints and enrichment |
enrichment.asn_database | string | — | — | MMDB ASN database; empty: none | Fingerprints and enrichment |
Example
yaml
events:
retention: 720h
max_events: 1000000
traffic:
mode: sample
sample_rate: 10
retention: 168h