Debugging and logging configuration options
Logging and debugging settings are not required in a Ceph configuration file, but you can override default settings as needed.
The options take a single item that is assumed to be the default for all daemons regardless of
channel. For example, specifying "info" is interpreted as "default=info". However, options can also
take key/value pairs. For example, default=daemon audit=local0 is interpreted as
"default all to daemon, override audit with local0."
-
log_file -
Description: The location of the logging file for the cluster.
-
mon_cluster_log_file -
Description The location of the monitor cluster’s log file.
-
log_max_new -
Description: The maximum number of new log files.
-
log_max_recent -
Description: The maximum number of recent events to include in a log file.
-
log_flush_on_exit -
Description: Determines if Ceph flushes the log files after exit.
-
mon_cluster_log_file_level -
Description: The level of file logging for the monitor cluster. Valid settings include "debug", "info", "sec", "warn", and "error".
-
log_to_stderr -
Description: Determines if logging messages appear in
stderr. -
err_to_stderr -
Description: Determines if error messages appear in
stderr. -
log_to_syslog -
Description: Determines if logging messages appear in
syslog. -
err_to_syslog -
Description: Determines if error messages appear in
syslog. -
clog_to_syslog -
Description: Determines if
clogmessages will be sent tosyslog. -
mon_cluster_log_to_syslog -
Description: Determines if the cluster log will be output to
syslog. -
mon_cluster_log_to_syslog_level -
Description: The level of syslog logging for the monitor cluster. Valid settings include "debug", "info", "sec", "warn", and "error".
-
mon_cluster_log_to_syslog_facility -
Description: The facility generating the syslog output. This is usually set to "daemon" for the Ceph daemons.
-
clog_to_monitors -
Description: Determines if
clogmessages will be sent to monitors. -
mon_cluster_log_to_graylog -
Description: Determines if the cluster will output log messages to graylog.
-
mon_cluster_log_to_graylog_host -
Description: The IP address of the graylog host. If the graylog host is different from the monitor host, override this setting with the appropriate IP address.
-
mon_cluster_log_to_graylog_port -
Description: Graylog logs will be sent to this port. Ensure the port is open for receiving data.
-
osd_preserve_trimmed_log -
Description: Preserves trimmed logs after trimming.
-
osd_tmapput_sets_uses_tmap -
Description: Uses
tmap. For debug only. -
osd_min_pg_log_entries -
Description: The minimum number of log entries for placement groups.
-
osd_op_log_threshold -
Description: Number of op log messages to show up in one pass.