{"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"}],"derived_content_hash":"4eded66b68d061fce3abc3cf027408c7e13f3199202667ed48278e780ab250cc","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:4a981b5b1a1611234d8300dd6264ef5a920466a8303f9117484c7322eef402ff","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"english-manuals:b338147a9ce40aefd21b687ac84b9d4fa8fd7c4466e8b81833dde2eee9e87832","receipt_sha256":"b2d25090d9d0a651613df0949d685df7bbd9e5a6f2cbceb9af131a6e49a884ff","repair":"wiki-repair-20261023"},"short_desc":"When logging to syslog is enabled, this parameter determines the syslog “facility” to be used.","short_desc_zh":"","source_rev":"wiki-repair-20261023:4a981b5b1a1611234d8300dd6264ef5a920466a8303f9117484c7322eef402ff","unit":"","vartype":"enum"}},"Definition":{"Collection":"guc","Key":"syslog_facility","SourceDatabase":"center","Version":"18","SourceTable":"guc","SourceKey":"syslog_facility","SourceRevision":"wiki-repair-20261023:4a981b5b1a1611234d8300dd6264ef5a920466a8303f9117484c7322eef402ff","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.","description_zh":"当启用了向 syslog 记录时，这个参数决定要使用的 syslog“设施”。你可以在 LOCAL0、LOCAL1、LOCAL2、LOCAL3、LOCAL4、LOCAL5、LOCAL6、LOCAL7 中选择，默认值是 LOCAL0。还请参阅系统的 syslog 守护进程的文档。这个参数只能在 postgresql.conf 文件中或在服务器命令行上设置。","description_zh_html":"\u003cp\u003e\n        当启用了向 \u003cspan class=\"application\"\u003esyslog\u003c/span\u003e 记录时，这个参数决定要使用的 \u003cspan class=\"application\"\u003esyslog\u003c/span\u003e\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e设施\u003c/span\u003e”\u003c/span\u003e。你可以在 \u003ccode class=\"literal\"\u003eLOCAL0\u003c/code\u003e、\u003ccode class=\"literal\"\u003eLOCAL1\u003c/code\u003e、\u003ccode class=\"literal\"\u003eLOCAL2\u003c/code\u003e、\u003ccode class=\"literal\"\u003eLOCAL3\u003c/code\u003e、\u003ccode class=\"literal\"\u003eLOCAL4\u003c/code\u003e、\u003ccode class=\"literal\"\u003eLOCAL5\u003c/code\u003e、\u003ccode class=\"literal\"\u003eLOCAL6\u003c/code\u003e、\u003ccode class=\"literal\"\u003eLOCAL7\u003c/code\u003e 中选择，默认值是 \u003ccode class=\"literal\"\u003eLOCAL0\u003c/code\u003e。还请参阅系统的 \u003cspan class=\"application\"\u003esyslog\u003c/span\u003e 守护进程的文档。这个参数只能在 \u003ccode class=\"filename\"\u003epostgresql.conf\u003c/code\u003e 文件中或在服务器命令行上设置。\n       \u003c/p\u003e","doc":{"anchor":"GUC-SYSLOG-FACILITY","file":"runtime-config-logging.html","lang":"en","sha256":"278d913b9c0f735c5cd7b35fd7205826bbd9c449805370d2dbe54105c0ed1d88","slug":"18"},"doc_html":"\u003cp\u003e\n        When logging to \u003cspan class=\"application\"\u003esyslog\u003c/span\u003e is enabled, this parameter\n        determines the \u003cspan class=\"application\"\u003esyslog\u003c/span\u003e\n\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003efacility\u003c/span\u003e”\u003c/span\u003e to be used.  You can choose\n        from \u003ccode class=\"literal\"\u003eLOCAL0\u003c/code\u003e, \u003ccode class=\"literal\"\u003eLOCAL1\u003c/code\u003e,\n        \u003ccode class=\"literal\"\u003eLOCAL2\u003c/code\u003e, \u003ccode class=\"literal\"\u003eLOCAL3\u003c/code\u003e, \u003ccode class=\"literal\"\u003eLOCAL4\u003c/code\u003e,\n        \u003ccode class=\"literal\"\u003eLOCAL5\u003c/code\u003e, \u003ccode class=\"literal\"\u003eLOCAL6\u003c/code\u003e, \u003ccode class=\"literal\"\u003eLOCAL7\u003c/code\u003e;\n        the default is \u003ccode class=\"literal\"\u003eLOCAL0\u003c/code\u003e. See also the\n        documentation of your system's\n        \u003cspan class=\"application\"\u003esyslog\u003c/span\u003e daemon.\n        This parameter can only be set in the \u003ccode class=\"filename\"\u003epostgresql.conf\u003c/code\u003e\n        file or on the server command line.\n       \u003c/p\u003e","doc_same_as":"","documentation_revision":{"inputs":[{"file":"runtime-config-logging.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"278d913b9c0f735c5cd7b35fd7205826bbd9c449805370d2dbe54105c0ed1d88","version":"18.7"},{"file":"runtime-config-logging.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"68c010254e1859ec0b76f06a563babd51a6c38997f1242e35e4c6b649724b1cb","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"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","translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/runtime-config-logging.html","sha256":"a322f5293f10e348b5fc5dca98fdb6af52462723a215b8701c3b9d933e2933b4"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"unit":null,"vartype":"enum","zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"GUC-SYSLOG-FACILITY","file":"runtime-config-logging.html","lang":"en","sha256":"278d913b9c0f735c5cd7b35fd7205826bbd9c449805370d2dbe54105c0ed1d88","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\u003e\n        When logging to \u003cspan\u003esyslog\u003c/span\u003e is enabled, this parameter\n        determines the \u003cspan\u003esyslog\u003c/span\u003e\n\u003cspan\u003e“\u003cspan\u003efacility\u003c/span\u003e”\u003c/span\u003e to be used.  You can choose\n        from \u003ccode\u003eLOCAL0\u003c/code\u003e, \u003ccode\u003eLOCAL1\u003c/code\u003e,\n        \u003ccode\u003eLOCAL2\u003c/code\u003e, \u003ccode\u003eLOCAL3\u003c/code\u003e, \u003ccode\u003eLOCAL4\u003c/code\u003e,\n        \u003ccode\u003eLOCAL5\u003c/code\u003e, \u003ccode\u003eLOCAL6\u003c/code\u003e, \u003ccode\u003eLOCAL7\u003c/code\u003e;\n        the default is \u003ccode\u003eLOCAL0\u003c/code\u003e. See also the\n        documentation of your system\u0026#39;s\n        \u003cspan\u003esyslog\u003c/span\u003e daemon.\n        This parameter can only be set in the \u003ccode\u003epostgresql.conf\u003c/code\u003e\n        file or on the server command line.\n       \u003c/p\u003e","SourceRevision":"wiki-repair-20261023:4a981b5b1a1611234d8300dd6264ef5a920466a8303f9117484c7322eef402ff","ContentHash":"1022e41543f252ca2c839fb89d61e107bc3dc11e733954b41eeded2ce754d193","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":"en","Fallback":false,"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","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
