Viewing Log Information

This section describes the log path and related permission information.

MEF Center Logs

After MEF Center is successfully installed, the log paths are as follows (the default installation path is /var):
  • Installation logs: Log path/mef-center-log/mef-center-install
  • Run logs: Log path/mef-center-log/mef-center-install/mef-center-install-run.log

    The time read by mef-center-install-run.log is the host time, and the time read by other MEF Center logs is the container time.

  • Operation logs: Log path/mef-center-log/mef-center-install/mef-center-install-operate.log
  • Logs of each module: Log path/mef-center-log/Module name

Viewing MEF Edge Logs

For details about process run logs or software installation logs generated during MEF Edge installation, see Table 1. If the log root path is the default path /var/alog, logs are recorded in /var/alog/MEFEdge_log. The permission on the log folder of each component is 750, and the permission on the log file is 640. The time when MEF Edge logs are read is the host time.
Table 1 Log permission description

Folder

Owner

Permission

MEFEdge_log

├── device_plugin

├── edge_core

├── edge_installer

├── edge_main

└── edge_om

root

root

root

root

MEFEdge

root

755

750

750

750

750

750

  • Run logs of MEF Edge installation and deployment: /var/alog/MEFEdge_log/edge_installer/edge_installer_run.log
  • Operation logs of MEF Edge installation and deployment: /var/alog/MEFEdge_log/edge_installer/edge_installer_operate.log

Collecting MEF Edge Logs

You can run commands to collect log files of each MEF Edge module and save them to a specified path.

  1. Log in to the MEF Edge device environment as the root user.
  2. Go to the path where run.sh is stored. The default installation directory is /usr/local/mindx.
    cd Installation_directory/MEFEdge/software/
  3. Run the following command to create the directory where the log collection file is stored:
    mkdir -p /run/collect_log
  4. Run the following command to collect MEF Edge logs:
    ./run.sh collectlog -log_pack_path=Log_collection_file_path -module=Module_name
    Table 2 collectlog parameters

    Parameter

    Description

    log_pack_path

    The log collection file path can only be /run/collect_log/mef_edge.tar.gz.

    module

    Module name. The value is all.