{"Entry":{"collection":"guc","key":"syslog_facility","name":"syslog_facility","aliases":[],"metadata":{"baseline":true,"boot_human":"Not specified","boot_val":null,"category":"Reporting and Logging / Where to Log","category_zh":"","changed_in":[],"changes":[{"documentation_changed":true,"fields":{},"from":"7.4","status":"changed","to":"8.0"},{"documentation_changed":true,"fields":{},"from":"8.0","status":"changed","to":"8.1"},{"documentation_changed":true,"fields":{},"from":"8.1","status":"changed","to":"8.2"},{"documentation_changed":true,"fields":{},"from":"8.2","status":"changed","to":"8.3"},{"documentation_changed":true,"fields":{},"from":"9.0","status":"changed","to":"9.1"},{"documentation_changed":true,"fields":{},"from":"9.6","status":"changed","to":"10"}],"content_hash":"0627a7a90d0a4ddaa00bf20c858da5f386acfac92981528311ccd81f9999f822","context":"","default_changed_in":[],"default_history":[{"from":"9.0","to":"19","value":"local0"}],"editorial":{"advice":{"olap":"Test syslog_facility under bursty analytical messages and multiline plans so splitting or receiver limits do not destroy record boundaries.","oltp":"Set syslog_facility to match the receiving syslog daemon's routing, framing, deduplication, and message-size contract; validate failover and backpressure with the real collector.","small":"Prefer the host's established syslog convention for syslog_facility; avoid parallel local-file retention unless it has an explicit purpose and size limit."},"mechanism":["syslog_facility sets the syslog \"facility\" to be used when syslog enabled. It selects the syslog routing facility only when syslog is listed in log_destination; the system logger maps that facility to storage or forwarding rules.","syslog_facility is a SIGHUP-context setting: a configuration reload activates the new server value without a restart; subsequent operations that consult it use the refreshed value.","It is active only when syslog appears in log_destination, after which the facility, ident, sequence, splitting, host daemon, and remote receiver jointly define record delivery."],"pitfalls":["Editing syslog_facility without reloading configuration and verifying the effective value and subsequent behavior.","Changing PostgreSQL framing or identifiers without testing the host daemon and remote receiver as one pipeline.","Assuming syslog preserves unlimited message size, multiline boundaries, ordering, or repeated records by default.","Changing syslog_facility globally without a rollback plan and a client or operational compatibility test."],"references":[{"title":"PostgreSQL 19 Beta 4: syslog_facility","url":"https://www.postgresql.org/docs/19/runtime-config-logging.html#GUC-SYSLOG-FACILITY"},{"title":"PostgreSQL 19 release notes","url":"https://www.postgresql.org/docs/19/release-19.html"}],"related":["log_destination","syslog_ident","syslog_sequence_numbers","syslog_split_messages","logging_collector"],"summary":"syslog_facility is the PostgreSQL setting that defines the syslog \"facility\" to be used when syslog enabled."},"enumvals":[],"first_version":"7.4","group":"Reporting and Logging","group_slug":"logging","imported_at":"2026-09-30T00:40:57.809787+08:00","intro_commit":{},"key":"syslog_facility","last_version":"20","max_val":"","min_val":"","name":"syslog_facility","position":402,"present_in":["7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"short_desc":"When logging to syslog is enabled, this parameter determines the syslog “facility” to be used.","short_desc_zh":"","source_rev":"english-manuals:b338147a9ce40aefd21b687ac84b9d4fa8fd7c4466e8b81833dde2eee9e87832","unit":"","vartype":"enum"}},"Definition":{"Collection":"guc","Key":"syslog_facility","SourceDatabase":"center","Version":"18","SourceTable":"guc","SourceKey":"syslog_facility","SourceRevision":"english-manuals:b338147a9ce40aefd21b687ac84b9d4fa8fd7c4466e8b81833dde2eee9e87832","Facts":{"boot_val":"local0","category":"Reporting and Logging / Where to Log","context":"sighup","description":"When logging to syslog is enabled, this parameter determines the syslog “facility” to be used. You can choose from LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7; the default is LOCAL0. See also the documentation of your system's syslog daemon. This parameter can only be set in the postgresql.conf file or on the server command line.","doc":{"anchor":"GUC-SYSLOG-FACILITY","file":"runtime-config-logging.html","lang":"en","sha256":"93c48c522a72fca19705c4c91a71e951eae653662008eee2e4a9a74a11127fde","slug":"18"},"documented":true,"enumvals":["local0","local1","local2","local3","local4","local5","local6","local7"],"extra_desc":null,"lang":"en","max_val":null,"metadata_version":"18","min_val":null,"name":"syslog_facility","short_desc":"Sets the syslog \"facility\" to be used when syslog enabled.","source":"pg-settings-source-snapshot","unit":null,"vartype":"enum"},"ManualEvidence":{"doc":{"anchor":"GUC-SYSLOG-FACILITY","file":"runtime-config-logging.html","lang":"en","sha256":"93c48c522a72fca19705c4c91a71e951eae653662008eee2e4a9a74a11127fde","slug":"18"}},"MeasuredEvidence":{"metadata_version":"18"}},"Text":{"Collection":"guc","Key":"syslog_facility","SourceDatabase":"center","Version":"18","Locale":"en","Title":"syslog_facility","Summary":"When logging to syslog is enabled, this parameter determines the syslog “facility” to be used. You can choose from LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7; the default is LOCAL0. See also the documentation of your system's syslog daemon. This parameter can only be set in the postgresql.conf file or on the server command line.","BodyHTML":"\u003cp\u003eWhen logging to syslog is enabled, this parameter determines the syslog “facility” to be used. You can choose from LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7; the default is LOCAL0. See also the documentation of your system\u0026#39;s syslog daemon. This parameter can only be set in the postgresql.conf file or on the server command line.\u003c/p\u003e","SourceRevision":"english-manuals:b338147a9ce40aefd21b687ac84b9d4fa8fd7c4466e8b81833dde2eee9e87832","ContentHash":"07c5281020f4eaf8ada04220ca7f7351353ef99bbce59d0ce948d8baf70db7de","Payload":{"description":"When logging to syslog is enabled, this parameter determines the syslog “facility” to be used. You can choose from LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7; the default is LOCAL0. See also the documentation of your system's syslog daemon. This parameter can only be set in the postgresql.conf file or on the server command line."}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
