diff --git a/source/includes/options-mongod.yaml b/source/includes/options-mongod.yaml index 5b6a095b409..2af50831515 100644 --- a/source/includes/options-mongod.yaml +++ b/source/includes/options-mongod.yaml @@ -144,8 +144,17 @@ args: null description: | Sends all logging output to the host's :term:`syslog` system rather than to standard output or a log file as with :option:`--logpath`. - - .. important:: You cannot use :option:`--syslog` with :option:`--logpath`. +optional: true +--- +program: mongod +name: syslogFacility +directive: option +args: +description: | + Specifies the facility level used when logging messages to syslog. The + default is ``user``. The value you specify must be supported by your + operating system's implementation of syslog. To use this option, you + must enable the :option:`--syslog` option. optional: true --- program: mongod diff --git a/source/includes/options-mongos.yaml b/source/includes/options-mongos.yaml index 53031b38034..f91b0c8c686 100644 --- a/source/includes/options-mongos.yaml +++ b/source/includes/options-mongos.yaml @@ -121,6 +121,13 @@ inherit: file: options-mongod.yaml --- program: mongos +name: syslogFacility +inherit: + name: syslogFacility + program: mongod + file: options-mongod.yaml +--- +program: mongos name: pidfilepath inherit: name: pidfilepath diff --git a/source/reference/program/mongod.txt b/source/reference/program/mongod.txt index e6448964d54..bfa376bd371 100644 --- a/source/reference/program/mongod.txt +++ b/source/reference/program/mongod.txt @@ -50,10 +50,12 @@ Core Options .. include:: /includes/option/option-mongod-maxConns.rst -.. include:: /includes/option/option-mongod-logpath.rst +.. include:: /includes/option/option-mongod-syslog.rst .. include:: /includes/option/option-mongod-syslogFacility.rst +.. include:: /includes/option/option-mongod-logpath.rst + .. include:: /includes/option/option-mongod-logappend.rst .. include:: /includes/option/option-mongod-timeStampFormat.rst @@ -80,8 +82,6 @@ Core Options .. include:: /includes/option/option-mongod-fork.rst -.. include:: /includes/option/option-mongod-syslog.rst - .. include:: /includes/option/option-mongod-auth.rst .. include:: /includes/option/option-mongod-saslServiceName.rst diff --git a/source/reference/program/mongos.txt b/source/reference/program/mongos.txt index 2858416cdb3..54550ae99fc 100644 --- a/source/reference/program/mongos.txt +++ b/source/reference/program/mongos.txt @@ -47,11 +47,10 @@ Core Options .. include:: /includes/option/option-mongos-maxConns.rst +.. include:: /includes/option/option-mongos-syslog.rst .. include:: /includes/option/option-mongos-syslogFacility.rst -.. include:: /includes/option/option-mongos-syslog.rst - .. include:: /includes/option/option-mongos-logpath.rst .. include:: /includes/option/option-mongos-logappend.rst