Skip to content

Commit 010e462

Browse files
authored
Merge pull request #99189 from micahl/patch-2
Add tip to limit scope of Get/UploadModuleLogs
2 parents 968d92b + 4a7c75b commit 010e462

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

articles/iot-edge/how-to-retrieve-iot-edge-logs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ The [Logger class in IoT Edge](https://github.com/Azure/iotedge/blob/master/edge
4949
Use the **GetModuleLogs** direct method to retrieve the logs of an IoT Edge module.
5050

5151
>[!TIP]
52+
>Use the `since` and `until` filter options to limit the range of logs retrieved. Calling this direct method without bounds retrieves all the logs which may be large, time consuming, or costly.
53+
>
5254
>The IoT Edge troubleshooting page in the Azure portal provides a simplified experience for viewing module logs. For more information, see [Monitor and troubleshoot IoT Edge devices from the Azure portal](troubleshoot-in-portal.md).
5355
5456
This method accepts a JSON payload with the following schema:
@@ -155,6 +157,8 @@ Use the **UploadModuleLogs** direct method to send the requested logs to a speci
155157
::: moniker range=">=iotedge-2020-11"
156158

157159
> [!NOTE]
160+
> Use the `since` and `until` filter options to limit the range of logs retrieved. Calling this direct method without bounds retrieves all the logs which may be large, time consuming, or costly.
161+
>
158162
> If you wish to upload logs from a device behind a gateway device, you will need to have the [API proxy and blob storage modules](how-to-configure-api-proxy-module.md) configured on the top layer device. These modules route the logs from your lower layer device through your gateway device to your storage in the cloud.
159163
160164
::: moniker-end

0 commit comments

Comments
 (0)