Verify that file-level logging is configured for OpenStack components on Horizon container
NetBackup for OpenStack Horizon plug-in uses OpenStack's logging services to store the logs. It is recommended that you configure system logging for OpenStack components on Horizon container.
Ensure that you configure the following parts of the logging to generate structured log information to a file.
Sample configuration:
Formatters: Define the formatting of log information in the log file.
'verbose': { 'format': '%(asctime)s %(process)d %(levelname)s %(name)s %(message)s' },Handlers: Add a file handler to write log information to the log file.
'file': { 'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': '/var/log/horizon/horizon.log', 'formatter': 'verbose', },Loggers: Update each OpenStack component in use with the file handler information to the log file.
For example, OpenStack dashboard, Horizon, Nova client, Cinder client, Keystone client, Glance client, Neutron client, OpenStack authorization, Django, and so on.
'horizon': { 'handlers': ['file'], 'level': 'DEBUG', 'propagate': False, }
It is recommended that you enable log rotation to restrict the volume of the log data to avoid overflowing the record store. For more information about logging and configuring log rotation, see Django documentation.