Overview
MindEdge Framework collects and exports MEF Edge logs to check MEF Edge logs and monitor device status.
Restrictions
- Only one log export task can be performed at a time.
- Each log export task supports a maximum of 100 nodes.
- The log download request must be completed within 2 hours.
- Logs can be downloaded within one day after being exported successfully.
- After MEF Center is restarted, all tasks are deleted, and the previously exported logs cannot be downloaded.
- After a new log collection task is started, the logs collected by the previous task will be deleted.
- A maximum of 2,000 completed log collection tasks can be stored. Extra tasks will be deleted.
Log Collection Process
The following describes how MEF Edge calls APIs to collect logs:
- Create a log collection task.
A log collection task is delivered through the RESTful API. If the task is successfully created, the log collection task ID is returned. For details about the API, see Creating a Log Collection Task.
https://{ip}:{port}/edgemanager/v1/logmgmt/dump/task - Optional: Query the log collection task progress.
The progress of a log collection task is queried based on the log collection task ID. When the task status is succeed or partiallyFailed, MEF Center successfully collects MEF Edge logs. For details about the API, see Querying the Log Collection Task Progress.
https://{ip}:{port}/edgemanager/v1/logmgmt/dump/task/?taskId={taskId} - Optional: Download a log collection file.
For details about the API, see Download a Log Collection File.
https://{ip}:{port}/edgemanager/v1/logmgmt/dump/download/edgeNodes.tar.gz
Parent topic: Log Collection APIs