Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pages/database-management/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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]` |
Expand Down
5 changes: 5 additions & 0 deletions pages/database-management/logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down