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
Procedure
- In the left navigation, click the Logs icon.
- 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:
- On the Logs module in PETC, under Search by select App – Service Name.
- Select the app.
- Select the Service Name for the app.
- 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.
- 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 is2
, third boot is3
, fourth boot is4
, 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.
- Message Priority – View messages by log level, for example, Warning or Error.
- 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.
- Click Update Preview.The last 20 log entries are displayed in the preview pane.
- (Optional) Click Download Log to download the full contents for the log request.The log is downloaded with the file name PETC.log file.