Skip to content

DOCS-2825 syslogFacility #1626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions source/includes/options-mongod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: <string>
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
Expand Down
7 changes: 7 additions & 0 deletions source/includes/options-mongos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions source/reference/program/mongod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions source/reference/program/mongos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down