Skip to content

Using Logging Functionalities

Configuring the Logging Settings

The logging configuration of the Open Edge Device Kit is defined in the settings file /ipc/cfg/oedk_config.json. The following table lists the configurable logging parameters:

Parameter Description
active_log_directory directory for active log files
upload_log_directory directory for uploading log files
archived_log_directory directory for archiving log files
size_mb size limit for log files

The following extract of the Open Edge Device Kit shows an example logging configuration:

"logging": {
        "active_log_directory": "/persistent_massdata/log/",
        "upload_log_directory": "/persistent_massdata/tmp/logsToUpload/",
        "archived_log_directory": "/persistent_massdata/tmp/archive/",
        "logLevel": "INFO",
        "size_mb": 20,
        "size_cap_mb": 200,
        "log_history_days": 8,
        "upload_cycle_sec": 120
    }

Automatic Log File Archiving

The Open Edge Device Kit regularly creates new log files and archives the previous file. This is triggered if either of the following conditions is fulfilled:

  • Time: The Open Edge Device Kit creates a new log file when the first log message of a new day arrives.
  • Size: The Open Edge Device Kit creates a new log file when the current file reaches the user defined size limit size_mb.

Log File Upload

The Open Edge Device Kit automatically copies archived log files into the upload folder and starts the upload.

Downloading Log Files

  1. Open Fleet Manager from the MindSphere Launchpad.
  2. Select the asset that represents your device.
  3. Open a Files tab in the asset view.
  4. Select the desired log files and click on Download at the bottom of the tab.

Log File Download

Any questions left?

Ask the community


Except where otherwise noted, content on this site is licensed under the Development License Agreement.


Last update: May 20, 2019