Viewing Logs

In Predix Edge Technician Console, view the last 20 journal log entries and download the log files to view the full contents.

About this task

The preview pane in the Logs screen displays the last 20 journal log entries. You can apply filters to specify which logs to view.

Procedure

  1. In the left navigation, click the Logs icon.
  2. Apply the filters for the logs to view.
    Date Range
    By default, the time window for viewing logs is set to the last 24 hours. Click the calendar icon to select the date and time ranges to view. You can also select one of the pre-defined time intervals under Presets.
    Search By
    • Component/Process – (Optional) Enter the name of the process or component for which to display logs, for example, “NetworkManager.” If you do not specify the component or process, logs for all components and processes are displayed.
      You can preview logs for the following services:
      • docker.service
      • edge-agent-dispatcher.service
      • edge-agent-gateway.service
      • edge-agent-docker-init.service
      • edge-agent-restapi.service
      • edgeos-cfg-mnt-reload.service
      • edgeos-init.service
      • edgeos-machine-id-setup.service
      • edgeos-data-mnt-init.service
      • edgeos-data-expander.service
      • edgeos-conf-reset.service
      • edgeos-filesystem-expand.service
    • Show only Kernel Messages – Typically, kernel messages are produced by the device drivers.
    • App – Service Name – To view app service logs in PETC:
      1. On the Logs module in PETC, under Search by select App – Service Name.
      2. Select the app.
      3. Select the Service Name for the app.
    Additional Options
    • Message Priority – View messages by log level, for example, Warning or Error.

      Warning is the default. All logs with the specified priority and logs with higher priority are displayed. Debug is the lowest log level you can specify.

    • Boot Integer – View logs for specified boot found in the journal. 1 represents the first boot found in the journal, subsequent boots are in chronological order (second boot is 2, third boot is 3, fourth boot is 4, and so on). You can also enter a negative integer to view boots in reverse order, for example -0 is the last boot recorded in the journal, -1 is the second-to-last boot, and so on.
    Output Options
    Select the output options for the logs:
    • Display Timestamps in UTC – The timestamps in the logs are displayed in the UTC time format. This is always enabled.
    • Format Output in JSON – Formats the log as JSON.
  3. Click Update Preview.
    The last 20 log entries are displayed in the preview pane.
  4. (Optional) Click Download Log to download the full contents for the log request.
    The log is downloaded with the file name PETC.log file.