From d3abf64257d2cc7d64528c09887dd85bec530e3f Mon Sep 17 00:00:00 2001 From: Damon Feldman <700633+damonfeldman@users.noreply.github.com> Date: Mon, 4 Sep 2023 23:02:12 -0400 Subject: [PATCH] Update log-format.md It appears the logRequest flag changed to logDQLRequest on or about v23.0 or v23.1. Updating docs. --- content/deploy/admin/log-format.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/deploy/admin/log-format.md b/content/deploy/admin/log-format.md index 04daab7d..12975d5c 100644 --- a/content/deploy/admin/log-format.md +++ b/content/deploy/admin/log-format.md @@ -45,7 +45,7 @@ You can dynamically turn request logging on or off. To toggle request logging on ```graphql mutation { - config(input: {logRequest: true}) { + config(input: {logDQLRequest: true}) { response { code message @@ -53,6 +53,8 @@ mutation { } } ``` +Note this input flag was named logRequest until Dgraph version v23. + The response should look like the following: ```json @@ -114,4 +116,4 @@ mutation { With a Dgraph enterprise license, you can enable audit logging so that all requests are tracked and available for use in security audits. To learn more, see -[Audit Logging]({{< relref "enterprise-features/audit-logs.md" >}}). \ No newline at end of file +[Audit Logging]({{< relref "enterprise-features/audit-logs.md" >}}).