+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Container log files

This topic contains information about V8.0.0 log file locations and persistence.

Log files are generated for MobileFirst Server and Liberty Profile runtime activities for each container instance and can be found in the following locations:

We can log in to the container by following the steps in Accessing log files and access the log files.

To persist log files, even after a container no longer exists, enable volume. (Volume is not enabled by default.) Having volume enabled can also allow you to view the logs from Bluemix using the logmet interface (such as https://logmet.ng.bluemix.net/kibana).


Enabling volume

Volume allows for containers to persist log files. The volume for MobileFirst Server and MobileFirst Analytics container logs is not enabled by default.

We can enable volume when running the start*.sh scripts by setting ENABLE_VOLUME [-v | --volume] to Y. This is also configurable in the args/startserver.properties and args/startanalytics.properties files for interactive execution of the scripts.

The persisted log files are saved in the /var/log/rsyslog and /opt/ibm/wlp/usr/servers/mfp/logs folders in the container.

The logs can be accessed by issuing an SSH request to the container.

See related information for more details on usage of startserver.sh, startservergroup.sh, startanalytics.sh and startanalyticsgroup.sh.

Parent topic: Log and trace collection

Related concepts:

MobileFirst Analytics containers

Related reference:

Script overview and usage