Appendix B. Increasing logging levels of Satellite components
You can set logging levels for individual Satellite components. The default logging level is info. You can increase the logging level of Satellite components to troubleshoot Satellite. Increasing the logging level to debug provides the most detailed information.
B.1. Increasing the logging level for Foreman Copy linkLink copied to clipboard!
By default, you can find the log in /var/log/foreman/production.log. For more information, see Section A.2, “Configuring logging type and layout”.
For more information about Satellite logging settings, use satellite-installer with the --full-help option:
satellite-installer --full-help | grep logging
# satellite-installer --full-help | grep logging
Procedure
Set the logging level to
debug:satellite-installer --foreman-logging-level debug
# satellite-installer --foreman-logging-level debugCopy to Clipboard Copied! Toggle word wrap Toggle overflow After you complete debugging, reset the logging level to the default value:
satellite-installer --reset-foreman-logging-level
# satellite-installer --reset-foreman-logging-levelCopy to Clipboard Copied! Toggle word wrap Toggle overflow
B.2. Increasing the logging level for Hammer Copy linkLink copied to clipboard!
You can find the log in ~/.hammer/log/hammer.log.
Procedure
In
/etc/hammer/cli_config.yml, set the:log_level:option todebug::log_level: 'debug'
:log_level: 'debug'Copy to Clipboard Copied! Toggle word wrap Toggle overflow
B.3. Increasing the logging level for Capsule Copy linkLink copied to clipboard!
By default, you can find the log in /var/log/foreman-proxy/proxy.log. For more information, see Section A.2, “Configuring logging type and layout”.
Procedure
Set the logging level to
debug:satellite-installer --foreman-proxy-log-level DEBUG
# satellite-installer --foreman-proxy-log-level DEBUGCopy to Clipboard Copied! Toggle word wrap Toggle overflow After you complete debugging, reset the logging level to the default value:
satellite-installer --reset-foreman-proxy-log-level
# satellite-installer --reset-foreman-proxy-log-levelCopy to Clipboard Copied! Toggle word wrap Toggle overflow
B.4. Increasing the logging level for Candlepin Copy linkLink copied to clipboard!
You can find the logs in /var/log/candlepin/candlepin.log and /var/log/candlepin/error.log.
Procedure
Set the logging level to
DEBUG:satellite-installer --katello-candlepin-loggers log4j.logger.org.candlepin:DEBUG
# satellite-installer --katello-candlepin-loggers log4j.logger.org.candlepin:DEBUGCopy to Clipboard Copied! Toggle word wrap Toggle overflow If the candlepin log files are too verbose, you can decrease the default debug level:
satellite-installer \ --katello-candlepin-loggers log4j.logger.org.candlepin:DEBUG \ --katello-candlepin-loggers log4j.logger.org.candlepin.resource.ConsumerResource:WARN \ --katello-candlepin-loggers log4j.logger.org.candlepin.resource.HypervisorResource:WARN
# satellite-installer \ --katello-candlepin-loggers log4j.logger.org.candlepin:DEBUG \ --katello-candlepin-loggers log4j.logger.org.candlepin.resource.ConsumerResource:WARN \ --katello-candlepin-loggers log4j.logger.org.candlepin.resource.HypervisorResource:WARNCopy to Clipboard Copied! Toggle word wrap Toggle overflow After you complete debugging, reset the logging level to the default value:
satellite-installer --reset-katello-candlepin-loggers
# satellite-installer --reset-katello-candlepin-loggersCopy to Clipboard Copied! Toggle word wrap Toggle overflow
B.5. Increasing the logging level for Redis Copy linkLink copied to clipboard!
You can find the log for Redis in /var/log/redis/redis.log.
Procedure
In
/etc/redis/redis.conf, set the logging level todebug:loglevel debug
loglevel debugCopy to Clipboard Copied! Toggle word wrap Toggle overflow Restart the Redis service:
systemctl restart redis
# systemctl restart redisCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteRunning
satellite-installerwill revert the setting to default.
B.6. Increasing the logging level for satellite-installer Copy linkLink copied to clipboard!
satellite-installer writes logs to /var/log/foreman-installer/.
Procedure
Increase the logging level of the
satellite-installerutility:satellite-installer --verbose-log-level debug
# satellite-installer --verbose-log-level debugCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note that this only affects standard output but not any log files written to disk.
B.7. Increasing the logging level for Pulp Copy linkLink copied to clipboard!
Pulp logs to the systemd journal. You can view the logs using journalctl --unit 'pulpcore*'.
Procedure
In
/etc/pulp/settings.py, set the logging level toDEBUG:LOGGING = {"dynaconf_merge": True, "loggers": {'': {'handlers': ['console'], 'level': 'DEBUG'}}}LOGGING = {"dynaconf_merge": True, "loggers": {'': {'handlers': ['console'], 'level': 'DEBUG'}}}Copy to Clipboard Copied! Toggle word wrap Toggle overflow Restart the Pulp services:
systemctl restart \ pulpcore-api \ pulpcore-content \ pulpcore-resource-manager \ pulpcore-worker@\*
# systemctl restart \ pulpcore-api \ pulpcore-content \ pulpcore-resource-manager \ pulpcore-worker@\*Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteRunning
satellite-installerwill revert the setting to default.
B.8. Increasing the logging level for Puppet agent Copy linkLink copied to clipboard!
You can find the logs in /var/log/puppetlabs/puppet/.
Prerequisites
- You have enabled Puppet on your Satellite. For more information, see Enabling Puppet integration with Satellite in Managing configurations by using Puppet integration.
Procedure
Set the logging level to
debug:satellite-installer --puppet-agent-additional-settings log_level:debug
# satellite-installer --puppet-agent-additional-settings log_level:debugCopy to Clipboard Copied! Toggle word wrap Toggle overflow
B.9. Increasing the logging level for Puppet server Copy linkLink copied to clipboard!
You can find the logs in /var/log/puppetlabs/puppetserver/.
Prerequisites
- You have enabled Puppet on your Satellite. For more information, see Enabling Puppet integration with Satellite in Managing configurations by using Puppet integration.
Procedure
Set the logging level to
debug:satellite-installer --puppet-server-additional-settings log_level:debug
# satellite-installer --puppet-server-additional-settings log_level:debugCopy to Clipboard Copied! Toggle word wrap Toggle overflow