You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit adae6fd
Browse filesBrowse the repository at this point in the historyBrowse files
docs: document log store configuration via [log_store] in config.toml
The log store guide and the environment variable reference described
--log-store-* flags and GRAPH_LOG_STORE_* environment variables that do
not exist; the log store is only configurable through the [log_store]
section of the TOML config (#6278). Replace those examples with TOML,
document every [log_store] key with its defaults, drop the nonexistent
max-size/retention-days options in favour of retention_hours, and note
that _logs returns a NotSupported error when no store is configured
(#6637). Also update the matching startup message.
Copy file name to clipboardExpand all lines: docs/environment-variables.md
+5-34Lines changed: 5 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -322,43 +322,14 @@ those.
322
322
323
323
**For complete log store documentation**, including detailed configuration, querying examples, and choosing the right backend, see the **[Log Store Guide](log-store.md)**.
324
324
325
-
### Quick Reference
326
-
327
-
**Backend selection:**
328
-
-`GRAPH_LOG_STORE_BACKEND`: `disabled` (default), `elasticsearch`, `loki`, or `file`
-`GRAPH_LOG_STORE_FILE_MAX_SIZE`: Max file size in bytes (default: 104857600 = 100MB)
343
-
-`GRAPH_LOG_STORE_FILE_RETENTION_DAYS`: Retention period (default: 30)
344
-
345
-
**Deprecated variables** (will be removed in future versions):
346
-
-`GRAPH_ELASTICSEARCH_URL` → use `GRAPH_LOG_STORE_ELASTICSEARCH_URL`
347
-
-`GRAPH_ELASTICSEARCH_USER` → use `GRAPH_LOG_STORE_ELASTICSEARCH_USER`
348
-
-`GRAPH_ELASTICSEARCH_PASSWORD` → use `GRAPH_LOG_STORE_ELASTICSEARCH_PASSWORD`
349
-
-`GRAPH_ELASTIC_SEARCH_INDEX` → use `GRAPH_LOG_STORE_ELASTICSEARCH_INDEX`
325
+
The log store is configured in the `[log_store]` section of the TOML configuration file passed with `--config`, not through environment variables. The former `GRAPH_ELASTICSEARCH_*` / `ELASTICSEARCH_*` variables and `--elasticsearch-*` flags have been removed.
350
326
351
327
### Example: File-based Logs for Local Development
The log store is configured in the `[log_store]` section of the TOML configuration file passed to `graph-node` with `--config` (see [config.md](config.md)). There are no command-line flags or environment variables for it.
|`username`| elasticsearch, loki | no || Basic-auth user name |
378
+
|`password`| elasticsearch, loki | no || Basic-auth password |
379
+
|`index`| elasticsearch | no |`subgraph`| Index name |
380
+
|`timeout_secs`| elasticsearch | no |`10`| Request timeout in seconds |
381
+
|`tenant_id`| loki | no || Loki tenant ID (`X-Scope-OrgID`) |
382
+
|`directory`| file | yes || Directory for the `.jsonl` files |
383
+
|`retention_hours`| file | no |`0`| Delete entries older than this many hours; `0` keeps them forever |
478
384
479
-
### Configuration Precedence
385
+
If the section is missing, the log store is disabled. An invalid section (for example, a missing `url`) is logged as a warning at startup, and the log store is disabled.
480
386
481
-
When multiple configuration methods are used:
387
+
### Migrating from earlier configuration
482
388
483
-
1.**CLI arguments** take highest precedence
484
-
2.**Environment variables** are used if no CLI args provided
485
-
3.**Defaults** are used if neither is set
389
+
The `--elasticsearch-url`, `--elasticsearch-user` and `--elasticsearch-password` flags and the matching `ELASTICSEARCH_*` / `GRAPH_ELASTICSEARCH_*` environment variables have been removed. Move those settings into a `[log_store]` section with `backend = "elasticsearch"`, as shown above.
0 commit comments