Logging for z/TPF support for MongoDB

With logging for z/TPF support for MongoDB, you can log MongoDB requests and responses and send the logging data to a server in binary JSON (BSON) format.

You can use the logging data in the following ways:
  • To better understand the behavior of the applications.
  • As diagnostic information when any database problems occur.
  • To monitor user and role management commands.

Logging for z/TPF support for MongoDB uses the high-speed connector to send logging data. You must define an endpoint group descriptor to specify the servers that the logging data is sent to.

The following figure shows the tasks to start logging for z/TPF support for MongoDB and how the logging data flows.
Figure 1. Logging for z/TPF support for MongoDB
This figure shows the tasks and the data flow for logging for z/TPF support for MongoDB, as described in the text that follows.
  1. Ensure a z/TPF server for MongoDB is started before you start logging. For more information, see the ZINET START command.
  2. Select a log receiver. You can write your own log receiver, or use a third-party product.
  3. Define an endpoint group.
  4. Customize logging. Enter the ZMONG LOG SET command to customize the data that you want to log for a subsystem. Enter the ZMONG LOG DISPLAY command to display the current settings.
  5. Start logging. Enter the ZMONG LOG START command to start logging. Enter the ZMONG LOG STOP command to stop logging.