Using ogconfig-cli to enable logging

Logging should be enabled using ogconfig-cli. Use the following commands in a Lighthouse terminal to view, enable or disable logging:

  • system.logging_cli_enabled - Enable/disable logging commands entered in the Lighthouse Terminal.

  • system.logging_rest_enabled - Enable/disable basic logging for the REST API. These logs report the following information about every REST API call:

  • Time

  • Request type (GET/POST/PUT/DELETE)

  • HTTP status code

  • Username

  • Source IP Address

  • Endpoint

system.logging_rest_request_enabled - Enable/disable request logging for every REST API call. In addition to the basic logging, also logs the request body that was provided by the client, if any.

Requires system.logging_rest_enabled to be enabled.