From f96fdf1291baf2f87795949bc38d9eef8a953deb Mon Sep 17 00:00:00 2001 From: Pontus Persson Date: Mon, 27 Apr 2020 22:06:43 +0200 Subject: [PATCH] Experimental feature flag GetLogs documentation (#2873) Adds documentation on how to enable the experimental GetLogs direct method using an environment variable. --- doc/built-in-logs-pull.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/built-in-logs-pull.md b/doc/built-in-logs-pull.md index 4063e9dd75f..025f90aa2af 100644 --- a/doc/built-in-logs-pull.md +++ b/doc/built-in-logs-pull.md @@ -157,4 +157,10 @@ The response is in the same format as `UploadLogs`. >Available in release 1.0.9 -This method accepts a JSON payload very similar to **UploadLogs** except it doesn't have the "sasUrl" key since the matching logs are returned inline in the response of the direct method. The logs content is truncated to the response size limit of direct methods which is currently 4KB. +To enable this feature, an additional environment needs to be set for the edgeAgent: + +| Environment Variable Name | value | +|------------------------------------------|--------| +| `ExperimentalFeatures__EnableGetLogs` | `true` | + +This method accepts a JSON payload very similar to **UploadLogs** except it doesn't have the "sasUrl" key since the matching logs are returned inline in the response of the direct method. The logs content is truncated to the response size limit of direct methods which is currently 128KB.