Retrieving Predix Edge Device Logs

You can use Edge Manager to retrieve log files from the edge device when debugging an application or troubleshooting a device.

About this task

If you are using the development version of Edge, with ssh enabled, you can also obtain logs from the command line of the device.

Procedure

  1. In the left navigation pane, select Device Manager > Devices.
  2. Select the device for which to retrieve logs, then select Device Operations > Execute Command.
  3. In the Execute Command dialog window select Predix Edge as the platform, then select the Get Journal Log tile, and click Next.
  4. In the Execute Command dialog window, set filters (using boolean values "true" and "false) for the type, quantity, and formatting of the logs to retrieve, and click Execute.
    Edge Manager requests the logs from the device.
    Optionally, to filter the logs for a specific application running on the device, you must first obtain the Container Name from the app. To do this:
    1. On the Edge Apps tab for the device, select the Application ID and copy the name of the container.
      Note: The container name may have a .1 appended at the end of the name. Do not include that in the copied text.
    2. In the Execute Command dialog box, paste the value you copied in the previous step into the Show Logs from Specified Application Service field.
  5. In the confirmation dialog window, click Close.
  6. In the Device Manager page, click the link for the device, then click the Commands tab.
    The Commands History displays the command history for the device and the status of each command. Once the Status displays "Success" you can click the download link in the Output column to download the log file.