diff --git a/pages/database-management/configuration.mdx b/pages/database-management/configuration.mdx index 6fe01b68d..246ee011e 100644 --- a/pages/database-management/configuration.mdx +++ b/pages/database-management/configuration.mdx @@ -522,6 +522,7 @@ This section contains the list of all other relevant flags used within Memgraph. | `--isolation-level=SNAPSHOT_ISOLATION` | Isolation level used for the transactions. Allowed values: SNAPSHOT_ISOLATION, READ_COMMITTED, READ_UNCOMMITTED. | `[string]` | | `--log-file=/var/log/memgraph/memgraph.log` | Path to where the log should be stored. If set to an empty string (`--log-file=`), no logs will be saved. | `[string]` | | `--log-level=WARNING` | Minimum log level. Allowed values: TRACE, DEBUG, INFO, WARNING, ERROR, CRITICAL. | `[string]` | +| `--log-retention-days=35` | Controls for how many days daily log files will be preserved. Allowed values: 1–1000000. | `[uint64]` | | `--memory-limit=0` | Total memory limit in MiB. Set to 0 to use the default values which are 100% of the physical memory if the swap is enabled and 90% of the physical memory otherwise. | `[uint64]` | | `--metrics-address` | Host for HTTP server for exposing metrics. | `[string]` | | `--metrics-port` | Port for HTTP server for exposing metrics. | `[uint64]` | diff --git a/pages/database-management/logs.mdx b/pages/database-management/logs.mdx index 1a1efed3b..d53ae02df 100644 --- a/pages/database-management/logs.mdx +++ b/pages/database-management/logs.mdx @@ -19,6 +19,11 @@ configuration flag or [during runtime](/database-management/configuration#change-configuration-settings-during-runtime) using the `SET DATABASE SETTING "log.level" TO "TRACE";` +Memgraph creates daily log files and retains them for 35 days by default. You +can change the retention period using the +[`--log-retention-days`](/database-management/configuration#other) configuration +flag. + The configuration set during runtime will be applied only for that session. You can check the log level by running `SHOW DATABASE SETTING "log.level";` query.