Skip to content

Commit 64d7b46

Browse files
authored
docs: document audit logging (#293)
* [docs] Document audit logging
1 parent 2009be2 commit 64d7b46

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

docs/deployment/configuration.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,21 @@ certificates in the folder are public PEM-armoured (*.pem), DER-encoded X509 cer
6969
| logging.logback.rollingpolicy.max-file-size | LOGGING_LOGBACK_ROLLINGPOLICY_MAX-FILE-SIZE | 10MB | Rolling max file size |
7070
| logging.logback.rollingpolicy.max-history | LOGGING_LOGBACK_ROLLINGPOLICY_MAX-HISTORY | 7 | Rolling max days |
7171

72+
{% if "audit-log" not in (config.extra.feature_flags.disabled|string|lower|replace(" ", "")).split(",") %}
73+
#### Audit Logging
74+
75+
Audit logging will allow you to have a trace of the actions performed using API calls.
76+
⚠️ **Important**: Please note that only modifying actions are logged (creating, updating, deleting) and not reading actions.
77+
78+
| Parameter | Environment variable | Default value | Description |
79+
|:-----------------------------------|:-----------------------------------|:-----------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------|
80+
| openaev.audit-logs.transports | OPENAEV_AUDIT-LOGS_TRANSPORTS | | Lists of transports to use for audit logging separated by comma. No transports means audit logging is disabled. The transports usable are : file,console |
81+
| openaev.audit-logs.halt-on-failure | OPENAEV_AUDIT-LOGS_HALT-ON-FAILURE | false | Parameter to stop the platform if audit logging is failing. |
82+
| logging.level.io.openaev.utils.log | LOGGING_LEVEL_IO_OPENAEV_UTILS_LOG | | Audit logging is using the global OpenAEV log level but to lower the log level of the audit logging, this parameter can be used |
83+
| | AUDIT_LOG_DIR | ./logs | If file transport is used, this parameter is used to set the path of the log file. |
84+
| | AUDIT_LOG_FILE | ./logs/audit.log | If file transport is used, this parameter is used to set the file path. |
85+
{% endif %}
86+
7287
### Dependencies
7388

7489
#### XTM Suite: OpenCTI

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ extra_css:
3434

3535
# Extra
3636
extra:
37+
feature_flags:
38+
disabled: !ENV [DOCS_FEATURE_FLAGS, "audit-log"]
3739
version:
3840
provider: mike
3941
analytics:
@@ -60,6 +62,7 @@ plugins:
6062
alias_type: symlink
6163
canonical_version: latest
6264
- search
65+
- macros
6366
- git-committers:
6467
repository: OpenAEV-Platform/docs
6568
branch: main

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ mkdocs-git-authors-plugin
44
mkdocs-git-committers-plugin-2
55
mkdocs-git-revision-date-localized-plugin
66
mkdocs-glightbox
7+
mkdocs-macros-plugin
78
mike
89
lxml

0 commit comments

Comments
 (0)