<section>
 <h1 class="contains-headerlink leafygreen-ui-41fr9s" weight="medium">
  Self-Managed Configuration File Options
  <a class="headerlink leafygreen-ui-1kepx47" href="#self-managed-configuration-file-options" title="Permalink to this heading">
   <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
    <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
    </path>
    <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
    </path>
   </svg>
   <div class="css-1btu0w3 evvkmar0" id="self-managed-configuration-file-options">
   </div>
  </a>
 </h1>
 <div class="leafygreen-ui-a5yxub">
  <p class="css-1cmx2d4 ef7gu8j0">
   On this page
  </p>
  <ul class="css-1qb0mst ef7gu8j1">
   <li class="leafygreen-ui-1e7a0ei">
    <a class="lg-ui-0001 leafygreen-ui-e98ikf" href="#configuration-file" target="_self">
     <span>
      Configuration File
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#file-format" target="_self">
     <span>
      File Format
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#use-the-configuration-file" target="_self">
     <span>
      Use the Configuration File
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-cpmeq5" href="#core-options" target="_self">
     <span>
      Core Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#systemlog-options" target="_self">
     <span>
      <code class="css-1kekw28 e1wawog0">
       systemLog
      </code>
      Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#processmanagement-options" target="_self">
     <span>
      <code class="css-1kekw28 e1wawog0">
       processManagement
      </code>
      Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#net-options" target="_self">
     <span>
      <code class="css-1kekw28 e1wawog0">
       net
      </code>
      Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#security-options" target="_self">
     <span>
      <code class="css-1kekw28 e1wawog0">
       security
      </code>
      Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#setparameter-option" target="_self">
     <span>
      <code class="css-1kekw28 e1wawog0">
       setParameter
      </code>
      Option
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#storage-options" target="_self">
     <span>
      <code class="css-1kekw28 e1wawog0">
       storage
      </code>
      Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#operationprofiling-options" target="_self">
     <span>
      <code class="css-1kekw28 e1wawog0">
       operationProfiling
      </code>
      Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#replication-options" target="_self">
     <span>
      <code class="css-1kekw28 e1wawog0">
       replication
      </code>
      Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#sharding-options" target="_self">
     <span>
      <code class="css-1kekw28 e1wawog0">
       sharding
      </code>
      Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-x9koo9" href="#auditlog-options" target="_self">
     <span>
      <code class="css-1kekw28 e1wawog0">
       auditLog
      </code>
      Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-cpmeq5" href="#mongos-only-options" target="_self">
     <span>
      <code class="css-1kekw28 e1wawog0">
       mongos
      </code>
      -only Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-cpmeq5" href="#windows-service-options" target="_self">
     <span>
      Windows Service Options
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-cpmeq5" href="#removed-mmapv1-options" target="_self">
     <span>
      Removed MMAPv1 Options
     </span>
    </a>
   </li>
  </ul>
 </div>
 <p class="leafygreen-ui-1kp3ins">
  The following page describes the configuration options available in
MongoDB 8.0. For configuration file options for other
versions of MongoDB, see the appropriate version of the MongoDB Manual.
 </p>
 <div class="leafygreen-ui-15mdk4" role="note">
  <h2 class="leafygreen-ui-6n7b7d">
   Note
  </h2>
  <div class="leafygreen-ui-9mycqc">
   <p class="leafygreen-ui-1kp3ins">
    If you're using MongoDB Atlas to manage your MongoDB deployments in the
cloud, you don't need to create a configuration file. To learn how
to configure settings for your MongoDB Atlas deployment, see
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/atlas/cluster-additional-settings/" target="_self">
     <span>
      Configure Additional Settings.
     </span>
    </a>
   </p>
  </div>
 </div>
 <p class="leafygreen-ui-1kp3ins">
  In addition to using the configuration file options, the default
configuration for the MongoDB binaries also uses the operating system
environment variables.
 </p>
 <span class="leafygreen-ui-1qnjd6d" id="std-label-conf-file">
 </span>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Configuration File
   <a class="headerlink leafygreen-ui-1kepx47" href="#configuration-file" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="configuration-file">
    </div>
   </a>
  </h2>
  <p class="leafygreen-ui-1kp3ins">
   You can configure
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
    <code class="leafygreen-ui-1l06pbn">
     mongod
    </code>
   </a>
   and
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
    <code class="leafygreen-ui-1l06pbn">
     mongos
    </code>
   </a>
   instances at
startup using a configuration file. The configuration file contains
settings that are equivalent to the
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
    <code class="leafygreen-ui-1l06pbn">
     mongod
    </code>
   </a>
   and
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
    <code class="leafygreen-ui-1l06pbn">
     mongos
    </code>
   </a>
   command-line options. See
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/configuration-file-settings-command-line-options-mapping/#std-label-conf-file-command-line-mapping">
    Self-Managed Configuration File Settings and Command-Line Options Mapping.
   </a>
  </p>
  <p class="leafygreen-ui-1kp3ins">
   Using a configuration file makes managing
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
    <code class="leafygreen-ui-1l06pbn">
     mongod
    </code>
   </a>
   and
   <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
    <code class="leafygreen-ui-1l06pbn">
     mongos
    </code>
   </a>
   options easier, especially for large-scale
deployments. You can also add comments to the configuration file to
explain the server's settings.
  </p>
  <ul class="leafygreen-ui-rioki0">
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     If you
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/installation/#std-label-tutorial-installation">
      installed MongoDB
     </a>
     with a package manager
such as
     <code class="leafygreen-ui-1l06pbn">
      yum
     </code>
     or
     <code class="leafygreen-ui-1l06pbn">
      apt
     </code>
     on Linux or
     <code class="leafygreen-ui-1l06pbn">
      brew
     </code>
     on macOS, or with the
MSI installer on Windows, a default
     <a aria-current="page" class="leafygreen-ui-tqgtui" href="/docs/manual/reference/configuration-options/">
      configuration file
     </a>
     has been provided as part of your
installation:
    </p>
    <div class="leafygreen-ui-skkc39" tabindex="0">
     <table class="leafygreen-ui-hr8lsv">
      <colgroup>
       <col style="width: 10%;"/>
       <col style="width: 25%;"/>
       <col style="width: 65%;"/>
      </colgroup>
      <thead class="leafygreen-ui-a9ho40">
       <tr data-testid="leafygreen-ui-header-row">
        <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Platform
          </div>
         </div>
        </th>
        <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Method
          </div>
         </div>
        </th>
        <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Configuration File
          </div>
         </div>
        </th>
       </tr>
      </thead>
      <tbody>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Linux
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            apt
           </code>
           ,
           <code class="leafygreen-ui-1l06pbn">
            yum
           </code>
           , or
           <code class="leafygreen-ui-1l06pbn">
            zypper
           </code>
           Package Manager
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            /etc/mongod.conf
           </code>
          </div>
         </div>
        </td>
       </tr>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           macOS
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            brew
           </code>
           Package Manager
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <p class="leafygreen-ui-1kp3ins">
            <code class="leafygreen-ui-1l06pbn">
             /usr/local/etc/mongod.conf
            </code>
            (on Intel processors), or
           </p>
           <p class="leafygreen-ui-1kp3ins">
            <code class="leafygreen-ui-1l06pbn">
             /opt/homebrew/etc/mongod.conf
            </code>
            (on
            <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://support.apple.com/en-us/HT211814" rel="noopener noreferrer">
             <span>
              Apple M1 processors)
             </span>
             <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
              <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
              </path>
              <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
              </path>
             </svg>
            </a>
           </p>
          </div>
         </div>
        </td>
       </tr>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Windows
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           MSI Installer
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            &lt;install directory&gt;\bin\mongod.cfg
           </code>
          </div>
         </div>
        </td>
       </tr>
      </tbody>
     </table>
    </div>
   </li>
   <li class="leafygreen-ui-d7p7b6">
    <p class="leafygreen-ui-1kp3ins">
     If you
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/installation/#std-label-tutorial-installation">
      installed MongoDB
     </a>
     through a downloaded
     <code class="leafygreen-ui-1l06pbn">
      TGZ
     </code>
     or
     <code class="leafygreen-ui-1l06pbn">
      ZIP
     </code>
     file, you must create
your own configuration file. The
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/administration/configuration/#std-label-base-config">
      basic example
configuration
     </a>
     is a good place to start.
    </p>
   </li>
  </ul>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    File Format
    <a class="headerlink leafygreen-ui-1kepx47" href="#file-format" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="file-format">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    MongoDB configuration files use the
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.yaml.org" rel="noopener noreferrer">
     <span>
      YAML
     </span>
     <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
      <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
      </path>
      <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
      </path>
     </svg>
    </a>
    format
    <a class="footnote-reference header-buffer" href="#footnote-yaml-json" id="ref-yaml-json-id1">
     [1]
    </a>
    .
   </p>
   <p class="leafygreen-ui-1kp3ins">
    The following sample configuration file contains several
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
     <code class="leafygreen-ui-1l06pbn">
      mongod
     </code>
    </a>
    settings that you may adapt to your local configuration:
   </p>
   <div class="leafygreen-ui-15mdk4" role="note">
    <h2 class="leafygreen-ui-6n7b7d">
     Note
    </h2>
    <div class="leafygreen-ui-9mycqc">
     <p class="leafygreen-ui-1kp3ins">
      YAML does not support tab characters for indentation: use spaces instead.
     </p>
    </div>
   </div>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"systemLog:\n   destination: file\n   path: \"/var/log/mongodb/mongod.log\"\n   logAppend: true\nprocessManagement:\n   fork: true\nnet:\n   bindIp: 127.0.0.1\n   port: 27017\nsetParameter:\n   enableLocalhostAuthBypass: false\n...","programmingLanguage":"YAML"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">systemLog:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">destination:</span> <span class="lg-highlight-string">file</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">path:</span> <span class="lg-highlight-string">"/var/log/mongodb/mongod.log"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">logAppend:</span> <span class="lg-highlight-literal">true</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">processManagement:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">fork:</span> <span class="lg-highlight-literal">true</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">net:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">bindIp:</span> <span class="lg-highlight-number">127.0</span><span class="lg-highlight-number">.0</span><span class="lg-highlight-number">.1</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">port:</span> <span class="lg-highlight-number">27017</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">setParameter:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">enableLocalhostAuthBypass:</span> <span class="lg-highlight-literal">false</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-string">...</span></td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <p class="leafygreen-ui-1kp3ins">
    The Linux package init scripts included in the official MongoDB packages depend
on specific values for
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.path" target="_self">
     <span>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.path
      </code>
     </span>
    </a>
    ,
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.dbPath" target="_self">
     <span>
      <code class="leafygreen-ui-1l06pbn">
       storage.dbPath
      </code>
     </span>
    </a>
    , and
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.fork" target="_self">
     <span>
      <code class="leafygreen-ui-1l06pbn">
       processManagement.fork
      </code>
     </span>
    </a>
    or
    <code class="leafygreen-ui-1l06pbn">
     MONGODB_CONFIG_OVERRIDE_NOFORK
    </code>
    system environment variable. If you modify these settings in the default
configuration file,
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
     <code class="leafygreen-ui-1l06pbn">
      mongod
     </code>
    </a>
    may not start.
   </p>
   <table class="header-buffer leafygreen-ui-rbqgrl" frame="void" id="footnote-yaml-json" rules="none">
    <colgroup>
     <col/>
    </colgroup>
    <tbody valign="top">
     <tr>
      <td class="leafygreen-ui-17r2xs0">
       [
       <a href="#ref-yaml-json-id1">
        1
       </a>
       ]
      </td>
      <td class="leafygreen-ui-17r2xs0">
       YAML is a superset of
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-JSON">
        JSON.
       </a>
      </td>
     </tr>
    </tbody>
   </table>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     Externally Sourced Values
     <a class="headerlink leafygreen-ui-1kepx47" href="#externally-sourced-values" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="externally-sourced-values">
      </div>
     </a>
    </h4>
    <div class="leafygreen-ui-15mdk4" role="note">
     <h2 class="leafygreen-ui-6n7b7d">
      Note
     </h2>
     <div class="leafygreen-ui-9mycqc">
      <p class="leafygreen-ui-1kp3ins">
       MongoDB supports using
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/expansion-directives/#std-label-expansion-directives">
        expansion directives
       </a>
       in configuration
files to load externally sourced values. Expansion directives can
load values for specific
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-configuration-options" target="_self">
        <span>
         configuration file options
        </span>
       </a>
       <em>
        or
       </em>
       load the
entire configuration file.
      </p>
     </div>
    </div>
    <p class="leafygreen-ui-1kp3ins">
     The following expansion directives are available:
    </p>
    <div class="leafygreen-ui-skkc39" tabindex="0">
     <table class="leafygreen-ui-hr8lsv">
      <colgroup>
       <col style="width: 30%;"/>
       <col style="width: 70%;"/>
      </colgroup>
      <thead class="leafygreen-ui-a9ho40">
       <tr data-testid="leafygreen-ui-header-row">
        <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Expansion Directive
          </div>
         </div>
        </th>
        <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Description
          </div>
         </div>
        </th>
       </tr>
      </thead>
      <tbody>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/expansion-directives/#mongodb-configexpansion-configexpansion.__rest">
            <code class="leafygreen-ui-1l06pbn">
             __rest
            </code>
           </a>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <p class="leafygreen-ui-1kp3ins">
            Allows users to specify a
            <code class="leafygreen-ui-1l06pbn">
             REST
            </code>
            endpoint as the external source
for configuration file options
            <em>
             or
            </em>
            the full configuration file.
           </p>
           <p class="leafygreen-ui-1kp3ins">
            If the configuration file includes the
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/expansion-directives/#mongodb-configexpansion-configexpansion.__rest">
             <code class="leafygreen-ui-1l06pbn">
              __rest
             </code>
            </a>
            expansion, on Linux/macOS, the read access to the configuration file must be limited
to the user running the
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
             <code class="leafygreen-ui-1l06pbn">
              mongod
             </code>
            </a>
            /
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
             <code class="leafygreen-ui-1l06pbn">
              mongos
             </code>
            </a>
            process only.
           </p>
          </div>
         </div>
        </td>
       </tr>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/expansion-directives/#mongodb-configexpansion-configexpansion.__exec">
            <code class="leafygreen-ui-1l06pbn">
             __exec
            </code>
           </a>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <p class="leafygreen-ui-1kp3ins">
            Allows users to specify a shell or terminal command as the
external source for configuration file options
            <em>
             or
            </em>
            the
full configuration file.
           </p>
           <p class="leafygreen-ui-1kp3ins">
            If the configuration file includes the
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/expansion-directives/#mongodb-configexpansion-configexpansion.__exec">
             <code class="leafygreen-ui-1l06pbn">
              __exec
             </code>
            </a>
            expansion, on Linux/macOS, the write access to the configuration file must be
limited to the user running the
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
             <code class="leafygreen-ui-1l06pbn">
              mongod
             </code>
            </a>
            /
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
             <code class="leafygreen-ui-1l06pbn">
              mongos
             </code>
            </a>
            process only.
           </p>
          </div>
         </div>
        </td>
       </tr>
      </tbody>
     </table>
    </div>
    <p class="leafygreen-ui-1kp3ins">
     For complete documentation, see
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/expansion-directives/#std-label-externally-sourced-values">
      Externally Sourced Configuration File Values for Self-Managed Deployments.
     </a>
    </p>
   </section>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Use the Configuration File
    <a class="headerlink leafygreen-ui-1kepx47" href="#use-the-configuration-file" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="use-the-configuration-file">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    To configure
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
     <code class="leafygreen-ui-1l06pbn">
      mongod
     </code>
    </a>
    or
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
     <code class="leafygreen-ui-1l06pbn">
      mongos
     </code>
    </a>
    using a config file,
specify the config file with the
    <code class="leafygreen-ui-1l06pbn">
     --config
    </code>
    option or the
    <code class="leafygreen-ui-1l06pbn">
     -f
    </code>
    option, as in the following examples:
   </p>
   <p class="leafygreen-ui-1kp3ins">
    For example, the following uses
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#std-option-mongod.--config">
     <code class="leafygreen-ui-1l06pbn">
      mongod --config
&lt;configuration file&gt;
     </code>
    </a>
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#std-option-mongos.--config">
     <code class="leafygreen-ui-1l06pbn">
      mongos --config
&lt;configuration file&gt;
     </code>
     :
    </a>
   </p>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"mongod --config /etc/mongod.conf\n\nmongos --config /etc/mongos.conf","programmingLanguage":"Bash"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light bash leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">mongod --config /etc/mongod.conf</td></tr><tr class=""><td class="leafygreen-ui-7razhx"><div class="leafygreen-ui-ihxujy"></div></td></tr><tr class=""><td class="leafygreen-ui-7razhx">mongos --config /etc/mongos.conf</td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <p class="leafygreen-ui-1kp3ins">
    You can also use the
    <code class="leafygreen-ui-1l06pbn">
     -f
    </code>
    alias to specify the configuration
file, as in the following:
   </p>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"mongod -f /etc/mongod.conf\n\nmongos -f /etc/mongos.conf","programmingLanguage":"Bash"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light bash leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">mongod -f /etc/mongod.conf</td></tr><tr class=""><td class="leafygreen-ui-7razhx"><div class="leafygreen-ui-ihxujy"></div></td></tr><tr class=""><td class="leafygreen-ui-7razhx">mongos -f /etc/mongos.conf</td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <p class="leafygreen-ui-1kp3ins">
    If you installed from a package and have started MongoDB using your
system's
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-init-script">
     init script
    </a>
    , you are already using a configuration
file.
   </p>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     Expansion Directives and
     <code class="leafygreen-ui-1l06pbn">
      --configExpand
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#expansion-directives-and---configexpand" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="expansion-directives-and---configexpand">
      </div>
     </a>
    </h4>
    <p class="leafygreen-ui-1kp3ins">
     If you are using
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/expansion-directives/#std-label-expansion-directives">
      expansion directives
     </a>
     in the configuration file, you must include the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#std-option-mongod.--configExpand">
      <code class="leafygreen-ui-1l06pbn">
       --configExpand
      </code>
     </a>
     option when starting
the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
     </a>
     or
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     . For example:
    </p>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"mongod --config /etc/mongod.conf  --configExpand \"rest,exec\"\nmongos --config /etc/mongos.conf  --configExpand \"rest,exec\"","programmingLanguage":"Bash"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-1b1bvay">
       <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light bash leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">mongod --config /etc/mongod.conf  --configExpand <span class="lg-highlight-string">"rest,exec"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">mongos --config /etc/mongos.conf  --configExpand <span class="lg-highlight-string">"rest,exec"</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <p class="leafygreen-ui-1kp3ins">
     If the configuration file includes an expansion directive and you start
the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
     </a>
     /
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     without specifying
that directive in the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#std-option-mongod.--configExpand">
      <code class="leafygreen-ui-1l06pbn">
       --configExpand
      </code>
     </a>
     option, the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
     </a>
     /
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     fails to start.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     For complete documentation, see
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/expansion-directives/#std-label-externally-sourced-values">
      Externally Sourced Configuration File Values for Self-Managed Deployments.
     </a>
    </p>
   </section>
  </section>
 </section>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Core Options
   <a class="headerlink leafygreen-ui-1kepx47" href="#core-options" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="core-options">
    </div>
   </a>
  </h2>
  <span class="leafygreen-ui-1qnjd6d" id="std-label-systemlog-options">
  </span>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    <code class="leafygreen-ui-1l06pbn">
     systemLog
    </code>
    Options
    <a class="headerlink leafygreen-ui-1kepx47" href="#systemlog-options" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="systemlog-options">
     </div>
    </a>
   </h3>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"systemLog:\n   verbosity: &lt;int&gt;\n   quiet: &lt;boolean&gt;\n   traceAllExceptions: &lt;boolean&gt;\n   syslogFacility: &lt;string&gt;\n   path: &lt;string&gt;\n   logAppend: &lt;boolean&gt;\n   logRotate: &lt;string&gt;\n   destination: &lt;string&gt;\n   timeStampFormat: &lt;string&gt;\n   component:\n      accessControl:\n         verbosity: &lt;int&gt;\n      command:\n         verbosity: &lt;int&gt;\n\n      # COMMENT additional component verbosity settings omitted for brevity","programmingLanguage":"YAML"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-1b1bvay">
      <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">systemLog:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">quiet:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">traceAllExceptions:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">syslogFacility:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">path:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">logAppend:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">logRotate:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">destination:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">timeStampFormat:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">component:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">accessControl:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">command:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><div class="leafygreen-ui-ihxujy"></div></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-comment">#</span><span class="lg-highlight-comment"> COMMENT additional component </span><span class="lg-highlight-comment">verbosity</span><span class="lg-highlight-comment"> settings omitted for </span><span class="lg-highlight-comment">brevity</span></td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      systemLog.verbosity
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.verbosity" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.verbosity">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : integer
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : 0
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The default
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-messages-ref">
       log message
      </a>
      verbosity level for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-message-components">
       components
      </a>
      . The
verbosity level determines the amount of
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
       Informational and
Debug
      </a>
      messages MongoDB outputs.
      <a class="footnote-reference header-buffer" href="#footnote-log-message" id="ref-log-message-id2">
       [2]
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The verbosity level can range from
      <code class="leafygreen-ui-1l06pbn">
       0
      </code>
      to
      <code class="leafygreen-ui-1l06pbn">
       5
      </code>
      :
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <code class="leafygreen-ui-1l06pbn">
         0
        </code>
        is the MongoDB's default log verbosity level, to include
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
         Informational
        </a>
        messages.
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <code class="leafygreen-ui-1l06pbn">
         1
        </code>
        to
        <code class="leafygreen-ui-1l06pbn">
         5
        </code>
        increases the verbosity level to include
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
         Debug
        </a>
        messages.
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      To use a different verbosity level for a named component, use the
component's verbosity setting. For example, use the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.accessControl.verbosity" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         systemLog.component.accessControl.verbosity
        </code>
       </span>
      </a>
      to set the
verbosity level specifically for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-ACCESS">
       <code class="leafygreen-ui-1l06pbn">
        ACCESS
       </code>
      </a>
      components.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      See the
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.&lt;name&gt;.verbosity
      </code>
      settings for
specific component verbosity settings.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      For various ways to set the log verbosity level, see
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-messages-configure-verbosity">
       Configure Log Verbosity Levels.
      </a>
     </p>
     <table class="header-buffer leafygreen-ui-rbqgrl" frame="void" id="footnote-log-message" rules="none">
      <colgroup>
       <col/>
      </colgroup>
      <tbody valign="top">
       <tr>
        <td class="leafygreen-ui-17r2xs0">
         [
         <a href="#ref-log-message-id2">
          2
         </a>
         ]
        </td>
        <td class="leafygreen-ui-17r2xs0">
         Starting in version 4.2, MongoDB includes the Debug verbosity level
(1-5) in the
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          log messages
         </a>
         . For example,
if the verbosity level is 2, MongoDB logs
         <code class="leafygreen-ui-1l06pbn">
          D2
         </code>
         . In previous
versions, MongoDB log messages only specified
         <code class="leafygreen-ui-1l06pbn">
          D
         </code>
         for Debug level.
        </td>
       </tr>
      </tbody>
     </table>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      systemLog.quiet
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.quiet" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.quiet">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : false
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Run
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      in a quiet mode
that attempts to limit the amount of output.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.quiet" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         systemLog.quiet
        </code>
       </span>
      </a>
      is
      <strong>
       not
      </strong>
      recommended for production
systems as it may make tracking problems during particular
connections much more difficult.
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      systemLog.traceAllExceptions
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.traceAllExceptions" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.traceAllExceptions">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : false
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Print verbose information for debugging. Use for additional logging
for support-related troubleshooting.
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      systemLog.syslogFacility
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.syslogFacility" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.syslogFacility">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : user
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The facility level used when logging messages to syslog.
The value you specify must be supported by your
operating system's implementation of syslog. To use this option, you
must  set
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.destination" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         systemLog.destination
        </code>
       </span>
      </a>
      to
      <code class="leafygreen-ui-1l06pbn">
       syslog
      </code>
      .
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      systemLog.path
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.path" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.path">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The path of the log file to which
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      should send all diagnostic
logging information, rather than the standard output or the host's
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-syslog">
       syslog
      </a>
      . MongoDB creates the log file at the specified path.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The Linux package init scripts do not expect
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.path" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         systemLog.path
        </code>
       </span>
      </a>
      to change from the
defaults. If you use the Linux packages and change
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.path" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         systemLog.path
        </code>
       </span>
      </a>
      , you must
use your own init scripts and disable the built-in scripts.
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      systemLog.logAppend
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.logAppend" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.logAppend">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : false
     </p>
     <p class="leafygreen-ui-1kp3ins">
      When
      <code class="leafygreen-ui-1l06pbn">
       true
      </code>
      ,
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      appends new entries to the end of the existing log file when
the instance restarts. Without this option,
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      backs up the
existing log and create a new file.
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      systemLog.logRotate
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.logRotate" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.logRotate">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : rename
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Determines the behavior for the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/logRotate/#mongodb-dbcommand-dbcmd.logRotate">
       <code class="leafygreen-ui-1l06pbn">
        logRotate
       </code>
      </a>
      command when
rotating the server log and/or the audit log. Specify either
      <code class="leafygreen-ui-1l06pbn">
       rename
      </code>
      or
      <code class="leafygreen-ui-1l06pbn">
       reopen
      </code>
      :
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <code class="leafygreen-ui-1l06pbn">
         rename
        </code>
        renames the log file.
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <code class="leafygreen-ui-1l06pbn">
         reopen
        </code>
        closes and reopens the log file following the typical
Linux/Unix log rotate behavior. Use
        <code class="leafygreen-ui-1l06pbn">
         reopen
        </code>
        when using the
Linux/Unix logrotate utility to avoid log loss.
       </p>
       <p class="leafygreen-ui-1kp3ins">
        If you specify
        <code class="leafygreen-ui-1l06pbn">
         reopen
        </code>
        , you must also set
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.logAppend" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           systemLog.logAppend
          </code>
         </span>
        </a>
        to
        <code class="leafygreen-ui-1l06pbn">
         true
        </code>
        .
       </p>
      </li>
     </ul>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      systemLog.destination
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.destination" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.destination">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The destination to which MongoDB sends all log output. Specify either
      <code class="leafygreen-ui-1l06pbn">
       file
      </code>
      or
      <code class="leafygreen-ui-1l06pbn">
       syslog
      </code>
      . If you specify
      <code class="leafygreen-ui-1l06pbn">
       file
      </code>
      , you must also specify
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.path" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         systemLog.path
        </code>
        .
       </span>
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      If you do not specify
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.destination" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         systemLog.destination
        </code>
       </span>
      </a>
      , MongoDB sends
all log output to standard output.
     </p>
     <div class="leafygreen-ui-1sjx7ru" role="note">
      <h2 class="leafygreen-ui-29m78u">
       Warning
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        The
        <code class="leafygreen-ui-1l06pbn">
         syslog
        </code>
        daemon generates timestamps when it logs a message, not
when MongoDB issues the message. This can lead to misleading timestamps
for log entries, especially when the system is under heavy load. We
recommend using the
        <code class="leafygreen-ui-1l06pbn">
         file
        </code>
        option for production systems to ensure
accurate timestamps.
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      systemLog.timeStampFormat
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.timeStampFormat" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.timeStampFormat">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : iso8601-local
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The time format for timestamps in log messages. Specify one of the
following values:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width: 20%;"/>
        <col style="width: 40%;"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Value
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Description
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             iso8601-utc
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            Displays timestamps in Coordinated Universal Time (UTC) in the
ISO-8601 format. For example, for New York at the start of the
Epoch:
            <code class="leafygreen-ui-1l06pbn">
             1970-01-01T00:00:00.000Z
            </code>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             iso8601-local
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            Displays timestamps in local time in the ISO-8601
format. For example, for New York at the start of the Epoch:
            <code class="leafygreen-ui-1l06pbn">
             1969-12-31T19:00:00.000-05:00
            </code>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.timeStampFormat" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           systemLog.timeStampFormat
          </code>
         </span>
        </a>
        no longer supports
        <code class="leafygreen-ui-1l06pbn">
         ctime
        </code>
        . An example of
        <code class="leafygreen-ui-1l06pbn">
         ctime
        </code>
        formatted date is:
        <code class="leafygreen-ui-1l06pbn">
         Wed Dec 31 18:17:54.811
        </code>
        .
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     <code class="leafygreen-ui-1l06pbn">
      systemLog.component
     </code>
     Options
     <a class="headerlink leafygreen-ui-1kepx47" href="#systemlog.component-options" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="systemlog.component-options">
      </div>
     </a>
    </h4>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"systemLog:\n   component:\n      accessControl:\n         verbosity: &lt;int&gt;\n      command:\n         verbosity: &lt;int&gt;\n\n      # COMMENT some component verbosity settings omitted for brevity\n\n      replication:\n         verbosity: &lt;int&gt;\n         election:\n            verbosity: &lt;int&gt;\n         heartbeats:\n            verbosity: &lt;int&gt;\n         initialSync:\n            verbosity: &lt;int&gt;\n         rollback:\n            verbosity: &lt;int&gt;\n      storage:\n         verbosity: &lt;int&gt;\n         journal:\n            verbosity: &lt;int&gt;\n         recovery:\n            verbosity: &lt;int&gt;\n      write:\n         verbosity: &lt;int&gt;","programmingLanguage":"YAML"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-1b1bvay">
       <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">systemLog:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">component:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">accessControl:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">command:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><div class="leafygreen-ui-ihxujy"></div></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-comment">#</span><span class="lg-highlight-comment"> COMMENT some component </span><span class="lg-highlight-comment">verbosity</span><span class="lg-highlight-comment"> settings omitted for </span><span class="lg-highlight-comment">brevity</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><div class="leafygreen-ui-ihxujy"></div></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">replication:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">election:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">heartbeats:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">initialSync:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">rollback:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">storage:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">journal:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">recovery:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">write:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">verbosity:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <div class="leafygreen-ui-15mdk4" role="note">
     <h2 class="leafygreen-ui-6n7b7d">
      Note
     </h2>
     <div class="leafygreen-ui-9mycqc">
      <p class="leafygreen-ui-1kp3ins">
       Starting in version 4.2, MongoDB includes the Debug verbosity level
(1-5) in the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
        log messages
       </a>
       . For example,
if the verbosity level is 2, MongoDB logs
       <code class="leafygreen-ui-1l06pbn">
        D2
       </code>
       . In previous
versions, MongoDB log messages only specified
       <code class="leafygreen-ui-1l06pbn">
        D
       </code>
       for Debug level.
      </p>
     </div>
    </div>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.accessControl.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.accessControl.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.accessControl.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
access control. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-ACCESS">
        <code class="leafygreen-ui-1l06pbn">
         ACCESS
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.command.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.command.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.command.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
commands. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-COMMAND">
        <code class="leafygreen-ui-1l06pbn">
         COMMAND
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.control.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.control.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.control.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
control operations. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-CONTROL">
        <code class="leafygreen-ui-1l06pbn">
         CONTROL
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.ftdc.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.ftdc.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.ftdc.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
diagnostic data collection operations. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-FTDC">
        <code class="leafygreen-ui-1l06pbn">
         FTDC
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.geo.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.geo.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.geo.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
geospatial parsing operations. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-GEO">
        <code class="leafygreen-ui-1l06pbn">
         GEO
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.index.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.index.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.index.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
indexing operations. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-INDEX">
        <code class="leafygreen-ui-1l06pbn">
         INDEX
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.network.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.network.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.network.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
networking operations. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-NETWORK">
        <code class="leafygreen-ui-1l06pbn">
         NETWORK
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.query.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.query.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.query.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
query operations. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-QUERY">
        <code class="leafygreen-ui-1l06pbn">
         QUERY
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.queryStats.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.queryStats.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.queryStats.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to invocations of
       <code class="leafygreen-ui-1l06pbn">
        $queryStats
       </code>
       . See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-QUERYSTATS">
        <code class="leafygreen-ui-1l06pbn">
         QUERYSTATS
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the default log verbosity level, and only includes
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          informational
         </a>
         messages. No
         <code class="leafygreen-ui-1l06pbn">
          $queryStats
         </code>
         calls are logged at this level.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          2
         </code>
         increases the verbosity level to include
         <code class="leafygreen-ui-1l06pbn">
          $queryStats
         </code>
         calls where
         <code class="leafygreen-ui-1l06pbn">
          algorithm
         </code>
         is
         <code class="leafygreen-ui-1l06pbn">
          "hmac-sha-256"
         </code>
         . Any HMAC keys are
redacted.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          3
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <code class="leafygreen-ui-1l06pbn">
          $queryStats
         </code>
         calls where
         <code class="leafygreen-ui-1l06pbn">
          algorithm
         </code>
         is
         <code class="leafygreen-ui-1l06pbn">
          "hmac-sha-256"
         </code>
         , and the corresponding results. Each result is its own
entry and there is a final entry with the string
         <code class="leafygreen-ui-1l06pbn">
          "we finished"
         </code>
         .
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.replication.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.replication.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.replication.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
replication. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-REPL">
        <code class="leafygreen-ui-1l06pbn">
         REPL
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.replication.election.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.replication.election.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.replication.election.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
election. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-ELECTION">
        <code class="leafygreen-ui-1l06pbn">
         ELECTION
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.replication.election.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.replication.election.verbosity
         </code>
        </span>
       </a>
       is unset,
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.replication.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.replication.verbosity
         </code>
        </span>
       </a>
       level also applies to
election components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.replication.heartbeats.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.replication.heartbeats.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.replication.heartbeats.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
heartbeats. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-REPL_HB">
        <code class="leafygreen-ui-1l06pbn">
         REPL_HB
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.replication.heartbeats.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.replication.heartbeats.verbosity
         </code>
        </span>
       </a>
       is unset,
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.replication.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.replication.verbosity
         </code>
        </span>
       </a>
       level also applies to
heartbeats components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.replication.initialSync.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.replication.initialSync.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.replication.initialSync.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
initialSync. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-INITSYNC">
        <code class="leafygreen-ui-1l06pbn">
         INITSYNC
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.replication.initialSync.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.replication.initialSync.verbosity
         </code>
        </span>
       </a>
       is unset,
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.replication.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.replication.verbosity
         </code>
        </span>
       </a>
       level also applies to
initialSync components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.replication.rollback.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.replication.rollback.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.replication.rollback.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
rollback. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-ROLLBACK">
        <code class="leafygreen-ui-1l06pbn">
         ROLLBACK
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.replication.rollback.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.replication.rollback.verbosity
         </code>
        </span>
       </a>
       is unset,
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.replication.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.replication.verbosity
         </code>
        </span>
       </a>
       level also applies to
rollback components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.sharding.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.sharding.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.sharding.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
sharding. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-SHARDING">
        <code class="leafygreen-ui-1l06pbn">
         SHARDING
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
storage. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-STORAGE">
        <code class="leafygreen-ui-1l06pbn">
         STORAGE
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.storage.journal.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.storage.journal.verbosity
         </code>
        </span>
       </a>
       is unset,
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.storage.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.storage.verbosity
         </code>
        </span>
       </a>
       level also applies to
journaling components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.journal.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.journal.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.journal.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
journaling. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-JOURNAL">
        <code class="leafygreen-ui-1l06pbn">
         JOURNAL
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.storage.journal.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.storage.journal.verbosity
         </code>
        </span>
       </a>
       is
unset, the journaling components have the same verbosity level as the
parent storage components: i.e. either the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.storage.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.storage.verbosity
         </code>
        </span>
       </a>
       level if
set or the default verbosity level.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.recovery.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.recovery.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.recovery.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
recovery. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-RECOVERY">
        <code class="leafygreen-ui-1l06pbn">
         RECOVERY
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.storage.recovery.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.storage.recovery.verbosity
         </code>
        </span>
       </a>
       is unset,
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-systemLog.component.storage.verbosity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          systemLog.component.storage.verbosity
         </code>
        </span>
       </a>
       level also applies to
recovery components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WT">
        <code class="leafygreen-ui-1l06pbn">
         WT
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtBackup.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtBackup.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtBackup.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to backup operations
performed by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTBACKUP">
        <code class="leafygreen-ui-1l06pbn">
         WTBACKUP
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtCheckpoint.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtCheckpoint.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtCheckpoint.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity for components related to checkpoint operations
performed by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTCHKPT">
        <code class="leafygreen-ui-1l06pbn">
         WTCHKPT
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtCompact.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtCompact.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtCompact.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity for components related to compaction operations
performed by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTCMPCT">
        <code class="leafygreen-ui-1l06pbn">
         WTCMPCT
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtEviction.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtEviction.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtEviction.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity for components related to eviction operations
performed by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTEVICT">
        <code class="leafygreen-ui-1l06pbn">
         WTEVICT
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtHS.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtHS.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtHS.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity for components related to history store operations
performed by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTHS">
        <code class="leafygreen-ui-1l06pbn">
         WTHS
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtRecovery.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtRecovery.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtRecovery.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity for components related to recovery operations
performed by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTRECOV">
        <code class="leafygreen-ui-1l06pbn">
         WTRECOV
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtRTS.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtRTS.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtRTS.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity for components related to rollback to stable
(RTS) operations performed by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTRTS">
        <code class="leafygreen-ui-1l06pbn">
         WTRTS
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtSalvage.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtSalvage.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtSalvage.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity for components related to salvage operations
performed by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTSLVG">
        <code class="leafygreen-ui-1l06pbn">
         WTSLVG
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtTimestamp.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtTimestamp.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtTimestamp.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity for components related to timestamps
used by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTTS">
        <code class="leafygreen-ui-1l06pbn">
         WTTS
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtTransaction.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtTransaction.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtTransaction.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity for components related to transaction operations
performed by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTTXN">
        <code class="leafygreen-ui-1l06pbn">
         WTTXN
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtVerify.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtVerify.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtVerify.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity for components related to verification operations
performed by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTVRFY">
        <code class="leafygreen-ui-1l06pbn">
         WTVRFY
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.storage.wt.wtWriteLog.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.storage.wt.wtWriteLog.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.storage.wt.wtWriteLog.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : -1
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity for components related to log write operations
performed by the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
        WiredTiger
       </a>
       storage engine.
See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WTWRTLOG">
        <code class="leafygreen-ui-1l06pbn">
         WTWRTLOG
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.transaction.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.transaction.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.transaction.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
transaction. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-TXN">
        <code class="leafygreen-ui-1l06pbn">
         TXN
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       systemLog.component.write.verbosity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-systemLog.component.write.verbosity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-systemLog.component.write.verbosity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The log message verbosity level for components related to
write operations. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#mongodb-data-WRITE">
        <code class="leafygreen-ui-1l06pbn">
         WRITE
        </code>
       </a>
       components.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The verbosity level can range from
       <code class="leafygreen-ui-1l06pbn">
        0
       </code>
       to
       <code class="leafygreen-ui-1l06pbn">
        5
       </code>
       :
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          0
         </code>
         is the MongoDB's default log verbosity level, to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Informational
         </a>
         messages.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          1
         </code>
         to
         <code class="leafygreen-ui-1l06pbn">
          5
         </code>
         increases the verbosity level to include
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/log-messages/#std-label-log-severity-levels">
          Debug
         </a>
         messages.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
   </section>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    <code class="leafygreen-ui-1l06pbn">
     processManagement
    </code>
    Options
    <a class="headerlink leafygreen-ui-1kepx47" href="#processmanagement-options" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="processmanagement-options">
     </div>
    </a>
   </h3>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"processManagement:\n   fork: &lt;boolean&gt;\n   pidFilePath: &lt;string&gt;\n   timeZoneInfo: &lt;string&gt;","programmingLanguage":"YAML"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">processManagement:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">fork:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">pidFilePath:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">timeZoneInfo:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      processManagement.fork
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-processManagement.fork" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-processManagement.fork">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : false
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Enable a
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-daemon">
       daemon
      </a>
      mode that runs the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      process in the background. By default
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      does not run as a daemon.
To use
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      as a daemon, set
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.fork" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         processManagement.fork
        </code>
       </span>
      </a>
      or use a controlling process that
handles the daemonization process (for example,
      <code class="leafygreen-ui-1l06pbn">
       systemd
      </code>
      ).
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.fork" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         processManagement.fork
        </code>
       </span>
      </a>
      option is not supported on Windows.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The Linux package init scripts do not expect
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.fork" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         processManagement.fork
        </code>
       </span>
      </a>
      to change from the
defaults. If you use the Linux packages and change
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.fork" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         processManagement.fork
        </code>
       </span>
      </a>
      , you must
use your own init scripts and disable the built-in scripts.
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Alternatively, you can set the
        <code class="leafygreen-ui-1l06pbn">
         MONGODB_CONFIG_OVERRIDE_NOFORK
        </code>
        environment variable on your system to
        <code class="leafygreen-ui-1l06pbn">
         true
        </code>
        to run the
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
        </a>
        or
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        process in the
background. If you set the environment variable, it overrides the
setting for
        <code class="leafygreen-ui-1l06pbn">
         processManagement.fork
        </code>
        .
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      processManagement.pidFilePath
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-processManagement.pidFilePath" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-processManagement.pidFilePath">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Specifies a file location to store the process ID (PID) of the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      process. The user running the
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
      or
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
      process must be able to write to this path. If the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.pidFilePath" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         processManagement.pidFilePath
        </code>
       </span>
      </a>
      option is not
specified, the process does not create a PID file. This option is generally
only useful in combination with the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.fork" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         processManagement.fork
        </code>
       </span>
      </a>
      setting.
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <h3 class="leafygreen-ui-144d5kf">
       <strong>
        Linux
       </strong>
      </h3>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        On Linux, PID file management is generally the responsibility of
your distro's init system: usually a service file in the
        <code class="leafygreen-ui-1l06pbn">
         /etc/init.d
        </code>
        directory, or a systemd unit file registered with
        <code class="leafygreen-ui-1l06pbn">
         systemctl
        </code>
        . Only
use the
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.pidFilePath" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           processManagement.pidFilePath
          </code>
         </span>
        </a>
        option if you are not using one of these init
systems. For more information, please see the respective
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/installation/#std-label-tutorial-installation">
         Installation Guide
        </a>
        for your operating system.
       </p>
      </div>
     </div>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <h3 class="leafygreen-ui-144d5kf">
       <strong>
        macOS
       </strong>
      </h3>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        On macOS, PID file management is generally handled by
        <code class="leafygreen-ui-1l06pbn">
         brew
        </code>
        . Only use
the
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.pidFilePath" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           processManagement.pidFilePath
          </code>
         </span>
        </a>
        option if you are not using
        <code class="leafygreen-ui-1l06pbn">
         brew
        </code>
        on your macOS system.
For more information, please see the respective
Installation Guide for your operating system.
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      processManagement.timeZoneInfo
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-processManagement.timeZoneInfo" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-processManagement.timeZoneInfo">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The full path from which to load the time zone database. If this option
is not provided, then MongoDB uses its built-in time zone database.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The configuration file included with Linux and macOS packages sets the
time zone database path to
      <code class="leafygreen-ui-1l06pbn">
       /usr/share/zoneinfo
      </code>
      by default.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The built-in time zone database is a copy of the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.iana.org/time-zones" rel="noopener noreferrer">
       <span>
        Olson/IANA time zone
database
       </span>
       <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
        <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
        </path>
        <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
        </path>
       </svg>
      </a>
      . It is updated along with
MongoDB releases, but the time zone database release cycle
differs from the MongoDB release cycle. The most recent release of
the time zone database is available on our
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip" rel="noopener noreferrer">
       <span>
        download site
       </span>
       <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
        <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
        </path>
        <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
        </path>
       </svg>
      </a>
      .
     </p>
     <div class="leafygreen-ui-1sjx7ru" role="note">
      <h2 class="leafygreen-ui-29m78u">
       Warning
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        MongoDB uses the third party
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://github.com/derickr/timelib" rel="noopener noreferrer">
         <span>
          timelib
         </span>
         <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
          <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
          </path>
          <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
          </path>
         </svg>
        </a>
        library to provide accurate
conversions between timezones. Due to a recent update,
        <code class="leafygreen-ui-1l06pbn">
         timelib
        </code>
        could create inaccurate time zone conversions in older versions of
MongoDB.
       </p>
       <p class="leafygreen-ui-1kp3ins">
        To explicitly link to the time zone database in versions of MongoDB
prior to 5.0, download the
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip" rel="noopener noreferrer">
         <span>
          time zone database
         </span>
         <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
          <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
          </path>
          <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
          </path>
         </svg>
        </a>
        .
and use the
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#std-option-mongod.--timeZoneInfo">
         <code class="leafygreen-ui-1l06pbn">
          timeZoneInfo
         </code>
        </a>
        parameter.
       </p>
      </div>
     </div>
    </dd>
   </dl>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    <code class="leafygreen-ui-1l06pbn">
     net
    </code>
    Options
    <a class="headerlink leafygreen-ui-1kepx47" href="#net-options" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="net-options">
     </div>
    </a>
   </h3>
   <div>
    <p>
     <em>
      Changed in version 5.0
     </em>
     : MongoDB removes the
     <code class="leafygreen-ui-1l06pbn">
      net.serviceExecutor
     </code>
     configuration option and the
corresponding
     <code class="leafygreen-ui-1l06pbn">
      --serviceExecutor
     </code>
     command-line option.
    </p>
   </div>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"net:\n   port: &lt;int&gt;\n   bindIp: &lt;string&gt;\n   bindIpAll: &lt;boolean&gt;\n   maxIncomingConnections: &lt;int&gt;\n   wireObjectCheck: &lt;boolean&gt;\n   ipv6: &lt;boolean&gt;\n   unixDomainSocket:\n      enabled: &lt;boolean&gt;\n      pathPrefix: &lt;string&gt;\n      filePermissions: &lt;int&gt;\n   tls:\n      certificateSelector: &lt;string&gt;\n      clusterCertificateSelector: &lt;string&gt;\n      mode: &lt;string&gt;\n      certificateKeyFile: &lt;string&gt;\n      certificateKeyFilePassword: &lt;string&gt;\n      clusterFile: &lt;string&gt;\n      clusterPassword: &lt;string&gt;\n      CAFile: &lt;string&gt;\n      clusterCAFile: &lt;string&gt;\n      clusterAuthX509:\n        attributes: &lt;string&gt;\n        extensionValue: &lt;string&gt;\n      CRLFile: &lt;string&gt;\n      allowConnectionsWithoutCertificates: &lt;boolean&gt;\n      allowInvalidCertificates: &lt;boolean&gt;\n      allowInvalidHostnames: &lt;boolean&gt;\n      disabledProtocols: &lt;string&gt;\n      FIPSMode: &lt;boolean&gt;\n      logVersions: &lt;string&gt;\n   compression:\n      compressors: &lt;string&gt;","programmingLanguage":"YAML"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">net:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">port:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">bindIp:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">bindIpAll:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">maxIncomingConnections:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">wireObjectCheck:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">ipv6:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">unixDomainSocket:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">enabled:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">pathPrefix:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">filePermissions:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">tls:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">certificateSelector:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clusterCertificateSelector:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">mode:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">certificateKeyFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">certificateKeyFilePassword:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clusterFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clusterPassword:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">CAFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clusterCAFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clusterAuthX509:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">        <span class="lg-highlight-attr">attributes:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">        <span class="lg-highlight-attr">extensionValue:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">CRLFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">allowConnectionsWithoutCertificates:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">allowInvalidCertificates:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">allowInvalidHostnames:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">disabledProtocols:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">FIPSMode:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">logVersions:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">compression:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">compressors:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      net.port
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.port" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.port">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : integer
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      :
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        27017 for
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        (if not a shard member or a config server
member) or
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
        </a>
        instance
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        27018 if
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        is a
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-sharding.clusterRole" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           shard member
          </code>
         </span>
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        27019 if
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        is a
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-sharding.clusterRole" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           config server member
          </code>
         </span>
        </a>
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      The TCP port on which the MongoDB instance listens for
client connections.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <code class="leafygreen-ui-1l06pbn">
       net.port
      </code>
      option accepts a range of values between
      <code class="leafygreen-ui-1l06pbn">
       0
      </code>
      and
      <code class="leafygreen-ui-1l06pbn">
       65535
      </code>
      .
Setting the port to
      <code class="leafygreen-ui-1l06pbn">
       0
      </code>
      configures
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      to use an arbitrary port
assigned by the operating system.
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      net.bindIp
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.bindIp" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.bindIp">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : localhost
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The hostnames and/or IP addresses and/or full Unix domain socket
paths on which
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      should
listen for client connections. You may attach
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      to any interface. To bind to multiple
addresses, enter a list of comma-separated values.
     </p>
     <div class="leafygreen-ui-vg7qwp" role="note">
      <h2 class="leafygreen-ui-2xicti">
       Example
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        <code class="leafygreen-ui-1l06pbn">
         localhost,/tmp/mongod.sock
        </code>
       </p>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      You can specify both IPv4 and IPv6 addresses, or hostnames that
resolve to an IPv4 or IPv6 address.
     </p>
     <div class="leafygreen-ui-vg7qwp" role="note">
      <h2 class="leafygreen-ui-2xicti">
       Example
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        <code class="leafygreen-ui-1l06pbn">
         localhost, 2001:0DB8:e132:ba26:0d5c:2774:e7f9:d513
        </code>
       </p>
      </div>
     </div>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        If specifying an IPv6 address
        <em>
         or
        </em>
        a hostname that resolves to an
IPv6 address to
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIp" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.bindIp
          </code>
         </span>
        </a>
        , you must start
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
        </a>
        or
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        with
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.ipv6" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.ipv6 : true
          </code>
         </span>
        </a>
        to enable IPv6 support.
Specifying an IPv6 address to
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIp" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.bindIp
          </code>
         </span>
        </a>
        does not
enable IPv6 support.
       </p>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      If specifying a
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://en.wikipedia.org/wiki/Link-local_address#IPv6" rel="noopener noreferrer">
       <span>
        link-local IPv6 address
       </span>
       <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
        <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
        </path>
        <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
        </path>
       </svg>
      </a>
      (
      <code class="leafygreen-ui-1l06pbn">
       fe80::/10
      </code>
      ), you must append the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses_(with_zone_index)" rel="noopener noreferrer">
       <span>
        zone index
       </span>
       <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
        <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
        </path>
        <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
        </path>
       </svg>
      </a>
      to that address (i.e.
      <code class="leafygreen-ui-1l06pbn">
       fe80::&lt;address&gt;%&lt;adapter-name&gt;
      </code>
      ).
     </p>
     <div class="leafygreen-ui-vg7qwp" role="note">
      <h2 class="leafygreen-ui-2xicti">
       Example
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        <code class="leafygreen-ui-1l06pbn">
         localhost,fe80::a00:27ff:fee0:1fcf%enp0s3
        </code>
       </p>
      </div>
     </div>
     <div class="leafygreen-ui-85da11" role="note">
      <h2 class="leafygreen-ui-1ac4g5h">
       Important
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        To avoid configuration updates due to IP address changes, use DNS
hostnames instead of IP addresses. It is particularly important to
use a DNS hostname instead of an IP address when configuring replica
set members or sharded cluster members.
       </p>
       <p class="leafygreen-ui-1kp3ins">
        Use hostnames instead of IP addresses to configure clusters across a
split network horizon. Starting in MongoDB 5.0, nodes that are only
configured with an IP address fail startup validation and do not start.
       </p>
      </div>
     </div>
     <div class="leafygreen-ui-1sjx7ru" role="note">
      <h2 class="leafygreen-ui-29m78u">
       Warning
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Before you bind your instance to a publicly-accessible IP address,
you must secure your cluster from unauthorized access. For a complete
list of security recommendations, see
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/administration/security-checklist/#std-label-security-checklist">
         Security Checklist for Self-Managed Deployments
        </a>
        . At minimum, consider
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/administration/security-checklist/#std-label-checklist-auth">
         enabling authentication
        </a>
        and
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-hardening/#std-label-network-config-hardening">
         hardening
network infrastructure.
        </a>
       </p>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      For more information about IP Binding, refer to the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-mongodb-configuration/">
       IP Binding in Self-Managed Deployments
      </a>
      documentation.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      To bind to all IPv4 addresses, enter
      <code class="leafygreen-ui-1l06pbn">
       0.0.0.0
      </code>
      .
     </p>
     <p class="leafygreen-ui-1kp3ins">
      To bind to all IPv4 and IPv6 addresses, enter
      <code class="leafygreen-ui-1l06pbn">
       ::,0.0.0.0
      </code>
      or
an asterisk
      <code class="leafygreen-ui-1l06pbn">
       "*"
      </code>
      (enclose the asterisk in quotes to distinguish from
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://yaml.org/spec/1.2/spec.html#alias/" rel="noopener noreferrer">
       <span>
        YAML alias nodes
       </span>
       <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
        <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
        </path>
        <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
        </path>
       </svg>
      </a>
      ).
Alternatively, use the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIpAll" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         net.bindIpAll
        </code>
       </span>
      </a>
      setting.
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <ul class="leafygreen-ui-rioki0">
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIp" target="_self">
           <span>
            <code class="leafygreen-ui-1l06pbn">
             net.bindIp
            </code>
           </span>
          </a>
          and
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIpAll" target="_self">
           <span>
            <code class="leafygreen-ui-1l06pbn">
             net.bindIpAll
            </code>
           </span>
          </a>
          are mutually
exclusive. That is, you can specify one or the other, but not
both.
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          The command-line option
          <code class="leafygreen-ui-1l06pbn">
           --bind_ip
          </code>
          overrides the configuration
file setting
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIp" target="_self">
           <span>
            <code class="leafygreen-ui-1l06pbn">
             net.bindIp
            </code>
            .
           </span>
          </a>
         </p>
        </li>
       </ul>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      To configure cluster nodes for
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://en.wikipedia.org/wiki/Split-horizon_DNS" rel="noopener noreferrer">
       <span>
        split horizon DNS
       </span>
       <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
        <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
        </path>
        <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
        </path>
       </svg>
      </a>
      , use host names
instead of IP addresses.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Starting in MongoDB v5.0,
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/replSetInitiate/#mongodb-dbcommand-dbcmd.replSetInitiate">
       <code class="leafygreen-ui-1l06pbn">
        replSetInitiate
       </code>
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/replSetReconfig/#mongodb-dbcommand-dbcmd.replSetReconfig">
       <code class="leafygreen-ui-1l06pbn">
        replSetReconfig
       </code>
      </a>
      reject configurations that use IP
addresses instead of hostnames.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Use
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.disableSplitHorizonIPCheck">
       <code class="leafygreen-ui-1l06pbn">
        disableSplitHorizonIPCheck
       </code>
      </a>
      to modify nodes that
cannot be updated to use host names. The parameter only applies to the
configuration commands.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      do not rely on
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.disableSplitHorizonIPCheck">
       <code class="leafygreen-ui-1l06pbn">
        disableSplitHorizonIPCheck
       </code>
      </a>
      for validation at startup.
Legacy
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      instances that use IP
addresses instead of host names can start after an upgrade.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Instances that are configured with IP addresses log a warning to use
host names instead of IP addresses.
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      net.bindIpAll
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.bindIpAll" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.bindIpAll">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : false
     </p>
     <p class="leafygreen-ui-1kp3ins">
      If true, the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      instance binds to all IPv4
addresses (i.e.
      <code class="leafygreen-ui-1l06pbn">
       0.0.0.0
      </code>
      ). If
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      starts with
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.ipv6" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         net.ipv6 : true
        </code>
       </span>
      </a>
      ,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIpAll" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         net.bindIpAll
        </code>
       </span>
      </a>
      also binds to all IPv6 addresses
(i.e.
      <code class="leafygreen-ui-1l06pbn">
       ::
      </code>
      ).
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      only supports IPv6 if started with
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.ipv6" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         net.ipv6 : true
        </code>
       </span>
      </a>
      . Specifying
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIpAll" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         net.bindIpAll
        </code>
       </span>
      </a>
      alone does not enable IPv6 support.
     </p>
     <div class="leafygreen-ui-1sjx7ru" role="note">
      <h2 class="leafygreen-ui-29m78u">
       Warning
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Before you bind your instance to a publicly-accessible IP address,
you must secure your cluster from unauthorized access. For a complete
list of security recommendations, see
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/administration/security-checklist/#std-label-security-checklist">
         Security Checklist for Self-Managed Deployments
        </a>
        . At minimum, consider
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/administration/security-checklist/#std-label-checklist-auth">
         enabling authentication
        </a>
        and
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-hardening/#std-label-network-config-hardening">
         hardening
network infrastructure.
        </a>
       </p>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      For more information about IP Binding, refer to the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-mongodb-configuration/">
       IP Binding in Self-Managed Deployments
      </a>
      documentation.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Alternatively, set
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIp" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         net.bindIp
        </code>
       </span>
      </a>
      to
      <code class="leafygreen-ui-1l06pbn">
       ::,0.0.0.0
      </code>
      or to an asterisk
      <code class="leafygreen-ui-1l06pbn">
       "*"
      </code>
      (enclose the asterisk in quotes to distinguish from
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://yaml.org/spec/1.2/spec.html#alias/" rel="noopener noreferrer">
       <span>
        YAML alias nodes
       </span>
       <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
        <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
        </path>
        <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
        </path>
       </svg>
      </a>
      ) to bind to all IP
addresses.
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIp" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.bindIp
          </code>
         </span>
        </a>
        and
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIpAll" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.bindIpAll
          </code>
         </span>
        </a>
        are mutually
exclusive. Specifying both options causes
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
        </a>
        or
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        to throw
an error and terminate.
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      net.maxIncomingConnections
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.maxIncomingConnections" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.maxIncomingConnections">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : integer
     </p>
     <div class="line-block">
      <div class="line">
       <em>
        Default (Windows):
       </em>
       1,000,000
      </div>
      <div class="line">
       <em>
        Default (Linux):
       </em>
       (
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://man7.org/linux/man-pages/man2/getrlimit.2.html" rel="noopener noreferrer">
        <span>
         RLIMIT_NOFILE
        </span>
        <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
         <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
         </path>
         <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
         </path>
        </svg>
       </a>
       ) * 0.8
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      The maximum number of simultaneous connections that
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      accepts. This setting has no effect if it is higher than your operating
system's configured maximum connection tracking threshold.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Do not assign too low of a value to this option, or you may
encounter errors during normal application operation.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      This is particularly useful for a
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      if you have a client
that creates multiple connections and allows them to timeout rather
than closing them.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      In this case, set
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.maxIncomingConnections" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         maxIncomingConnections
        </code>
       </span>
      </a>
      to a value slightly
higher than the maximum number of connections that the client creates, or the
maximum size of the connection pool.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      This setting prevents the
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
      from causing connection spikes on
the individual
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-shard">
       shards
      </a>
      . Spikes like these may disrupt the
operation and memory allocation of the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-sharded-cluster">
       sharded cluster.
      </a>
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      net.wireObjectCheck
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.wireObjectCheck" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.wireObjectCheck">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : true
     </p>
     <p class="leafygreen-ui-1kp3ins">
      When
      <code class="leafygreen-ui-1l06pbn">
       true
      </code>
      , the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      instance  validates
all requests from clients upon receipt to prevent clients from inserting
malformed or invalid BSON into a MongoDB database.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      For objects with a high degree of sub-document nesting,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.wireObjectCheck" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         net.wireObjectCheck
        </code>
       </span>
      </a>
      can
have a small impact on performance.
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      net.ipv6
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.ipv6" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.ipv6">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : false
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Set
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.ipv6" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         net.ipv6
        </code>
       </span>
      </a>
      to
      <code class="leafygreen-ui-1l06pbn">
       true
      </code>
      to enable IPv6 support.
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
       /
      </a>
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      disables IPv6 support by default.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Setting
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.ipv6" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         net.ipv6
        </code>
       </span>
      </a>
      does
      <em>
       not
      </em>
      direct the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
       /
      </a>
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      to listen on any
local IPv6 addresses or interfaces. To configure the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
       /
      </a>
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      to
listen on an IPv6 interface, you must either:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        Configure
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIp" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.bindIp
          </code>
         </span>
        </a>
        with one or more IPv6 addresses or
hostnames that resolve to IPv6 addresses,
        <strong>
         or
        </strong>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        Set
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIpAll" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.bindIpAll
          </code>
         </span>
        </a>
        to
        <code class="leafygreen-ui-1l06pbn">
         true
        </code>
        .
       </p>
      </li>
     </ul>
    </dd>
   </dl>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     <code class="leafygreen-ui-1l06pbn">
      net.unixDomainSocket
     </code>
     Options
     <a class="headerlink leafygreen-ui-1kepx47" href="#net.unixdomainsocket-options" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="net.unixdomainsocket-options">
      </div>
     </a>
    </h4>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"net:\n   unixDomainSocket:\n      enabled: &lt;boolean&gt;\n      pathPrefix: &lt;string&gt;\n      filePermissions: &lt;int&gt;","programmingLanguage":"YAML"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">net:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">unixDomainSocket:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">enabled:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">pathPrefix:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">filePermissions:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.unixDomainSocket.enabled
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.unixDomainSocket.enabled" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.unixDomainSocket.enabled">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : true
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Enable or disable listening on the UNIX domain socket.
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.unixDomainSocket.enabled" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.unixDomainSocket.enabled
         </code>
        </span>
       </a>
       applies only
to Unix-based systems.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       When
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.unixDomainSocket.enabled" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.unixDomainSocket.enabled
         </code>
        </span>
       </a>
       is
       <code class="leafygreen-ui-1l06pbn">
        true
       </code>
       ,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       listens on the UNIX socket.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       process always listens on the UNIX socket unless
one of the following is true:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.unixDomainSocket.enabled" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.unixDomainSocket.enabled
           </code>
          </span>
         </a>
         is
         <code class="leafygreen-ui-1l06pbn">
          false
         </code>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          --nounixsocket
         </code>
         is set. The command
line option takes precedence over the configuration file setting.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIp" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.bindIp
           </code>
          </span>
         </a>
         is not set
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIp" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.bindIp
           </code>
          </span>
         </a>
         does not specify
         <code class="leafygreen-ui-1l06pbn">
          localhost
         </code>
         or its associated IP address
        </p>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       installed from official
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/install-mongodb-on-debian/">
        .deb
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/install-mongodb-on-red-hat/">
        .rpm
       </a>
       packages
have the
       <code class="leafygreen-ui-1l06pbn">
        bind_ip
       </code>
       configuration set to
       <code class="leafygreen-ui-1l06pbn">
        127.0.0.1
       </code>
       by
default.
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.unixDomainSocket.pathPrefix
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.unixDomainSocket.pathPrefix" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.unixDomainSocket.pathPrefix">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : /tmp
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The path for the UNIX socket.
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.unixDomainSocket.pathPrefix" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.unixDomainSocket.pathPrefix
         </code>
        </span>
       </a>
       applies only
to Unix-based systems.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If this option has no value, the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       process creates a socket with
       <code class="leafygreen-ui-1l06pbn">
        /tmp
       </code>
       as a prefix. MongoDB
creates and listens on a UNIX socket unless one of the following is true:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.unixDomainSocket.enabled" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.unixDomainSocket.enabled
           </code>
          </span>
         </a>
         is
         <code class="leafygreen-ui-1l06pbn">
          false
         </code>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          --nounixsocket
         </code>
         is set
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIp" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.bindIp
           </code>
          </span>
         </a>
         is not set
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.bindIp" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.bindIp
           </code>
          </span>
         </a>
         does not specify
         <code class="leafygreen-ui-1l06pbn">
          localhost
         </code>
         or its associated IP address
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.unixDomainSocket.filePermissions
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.unixDomainSocket.filePermissions" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.unixDomainSocket.filePermissions">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : int
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       :
       <code class="leafygreen-ui-1l06pbn">
        0700
       </code>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Sets the permission for the UNIX domain socket file.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.unixDomainSocket.filePermissions" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.unixDomainSocket.filePermissions
         </code>
        </span>
       </a>
       applies only to Unix-based systems.
      </p>
     </dd>
    </dl>
    <span class="leafygreen-ui-1qnjd6d" id="std-label-net-tls-conf-options">
    </span>
   </section>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     <code class="leafygreen-ui-1l06pbn">
      net.tls
     </code>
     Options
     <a class="headerlink leafygreen-ui-1kepx47" href="#net.tls-options" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="net.tls-options">
      </div>
     </a>
    </h4>
    <div class="leafygreen-ui-15mdk4" role="note">
     <h2 class="leafygreen-ui-6n7b7d">
      Note
     </h2>
     <div class="leafygreen-ui-9mycqc">
      <p class="leafygreen-ui-1kp3ins">
       The
       <code class="leafygreen-ui-1l06pbn">
        tls
       </code>
       options provide identical functionality as the
previous
       <code class="leafygreen-ui-1l06pbn">
        ssl
       </code>
       options.
      </p>
     </div>
    </div>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"net:\n   tls:\n      mode: &lt;string&gt;\n      certificateKeyFile: &lt;string&gt;\n      certificateKeyFilePassword: &lt;string&gt;\n      certificateSelector: &lt;string&gt;\n      clusterCertificateSelector: &lt;string&gt;\n      clusterFile: &lt;string&gt;\n      clusterPassword: &lt;string&gt;\n      clusterAuthX509:\n        attributes: &lt;string&gt;\n        extensionValue: &lt;string&gt;\n      CAFile: &lt;string&gt;\n      clusterCAFile: &lt;string&gt;\n      CRLFile: &lt;string&gt;\n      allowConnectionsWithoutCertificates: &lt;boolean&gt;\n      allowInvalidCertificates: &lt;boolean&gt;\n      allowInvalidHostnames: &lt;boolean&gt;\n      disabledProtocols: &lt;string&gt;\n      FIPSMode: &lt;boolean&gt;\n      logVersions: &lt;string&gt;","programmingLanguage":"YAML"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">net:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">tls:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">mode:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">certificateKeyFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">certificateKeyFilePassword:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">certificateSelector:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clusterCertificateSelector:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clusterFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clusterPassword:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clusterAuthX509:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">        <span class="lg-highlight-attr">attributes:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">        <span class="lg-highlight-attr">extensionValue:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">CAFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clusterCAFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">CRLFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">allowConnectionsWithoutCertificates:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">allowInvalidCertificates:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">allowInvalidHostnames:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">disabledProtocols:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">FIPSMode:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">logVersions:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.mode
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.mode" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.mode">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Enables TLS used for all network connections. The
argument to the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.mode" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.mode
         </code>
        </span>
       </a>
       setting can be one of the following:
      </p>
      <div class="leafygreen-ui-skkc39" tabindex="0">
       <table class="leafygreen-ui-hr8lsv">
        <colgroup>
         <col style="width: 20%;"/>
         <col style="width: 40%;"/>
        </colgroup>
        <thead class="leafygreen-ui-a9ho40">
         <tr data-testid="leafygreen-ui-header-row">
          <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Value
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Description
            </div>
           </div>
          </th>
         </tr>
        </thead>
        <tbody>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              disabled
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             The server does not use TLS.
            </div>
           </div>
          </td>
         </tr>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              allowTLS
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Connections between servers do not use TLS. For incoming
connections, the server accepts both TLS and non-TLS.
            </div>
           </div>
          </td>
         </tr>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              preferTLS
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Connections between servers use TLS. For incoming
connections, the server accepts both TLS and non-TLS.
            </div>
           </div>
          </td>
         </tr>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              requireTLS
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             The server uses and accepts only TLS encrypted connections.
            </div>
           </div>
          </td>
         </tr>
        </tbody>
       </table>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       If
       <code class="leafygreen-ui-1l06pbn">
        --tlsCAFile
       </code>
       or
       <code class="leafygreen-ui-1l06pbn">
        tls.CAFile
       </code>
       is not
specified and you are not using x.509 authentication, you must set the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.tlsUseSystemCA">
        <code class="leafygreen-ui-1l06pbn">
         tlsUseSystemCA
        </code>
       </a>
       parameter to
       <code class="leafygreen-ui-1l06pbn">
        true
       </code>
       . This makes MongoDB use
the system-wide CA certificate store when connecting to a TLS-enabled server.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If using x.509 authentication,
       <code class="leafygreen-ui-1l06pbn">
        --tlsCAFile
       </code>
       or
       <code class="leafygreen-ui-1l06pbn">
        tls.CAFile
       </code>
       must be specified unless using
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#std-option-mongod.--tlsCertificateSelector">
        <code class="leafygreen-ui-1l06pbn">
         --tlsCertificateSelector
        </code>
        .
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For more information about TLS and MongoDB, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/">
        Configure
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        for TLS/SSL
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl-clients/">
        TLS/SSL Configuration for Clients
       </a>
       .
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.certificateKeyFile
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.certificateKeyFile" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.certificateKeyFile">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The
       <code class="file docutils literal">
        <span class="pre">
         .pem
        </span>
       </code>
       file that contains both the TLS certificate
and key.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       On macOS or Windows, you can use the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateSelector
         </code>
        </span>
       </a>
       setting to specify a certificate from the operating system's secure
certificate store instead of a PEM key file.
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateKeyFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          certificateKeyFile
         </code>
        </span>
       </a>
       and
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateSelector
         </code>
        </span>
       </a>
       are mutually exclusive.
You can only specify one.
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         On Linux/BSD, you must specify
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateKeyFile" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.certificateKeyFile
           </code>
          </span>
         </a>
         when TLS is enabled.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         On Windows or macOS, you must specify either
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateKeyFile" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.certificateKeyFile
           </code>
          </span>
         </a>
         or
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.certificateSelector
           </code>
          </span>
         </a>
         when TLS is enabled.
        </p>
        <div class="leafygreen-ui-85da11" role="note">
         <h2 class="leafygreen-ui-1ac4g5h">
          Important
         </h2>
         <div class="leafygreen-ui-9mycqc">
          <p class="leafygreen-ui-1kp3ins">
           For Windows
           <strong>
            only
           </strong>
           , MongoDB does not support
encrypted PEM files. The
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
            <code class="leafygreen-ui-1l06pbn">
             mongod
            </code>
           </a>
           fails to start if
it encounters an encrypted PEM file. To securely store and
access a certificate for use with TLS on Windows,
use
           <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
            <span>
             <code class="leafygreen-ui-1l06pbn">
              net.tls.certificateSelector
             </code>
             .
            </span>
           </a>
          </p>
         </div>
        </div>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       For more information about TLS and MongoDB, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/">
        Configure
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        for TLS/SSL
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl-clients/">
        TLS/SSL Configuration for Clients
       </a>
       .
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.certificateKeyFilePassword
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.certificateKeyFilePassword" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.certificateKeyFilePassword">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The password to de-crypt the certificate-key file (i.e.
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateKeyFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          certificateKeyFile
         </code>
        </span>
       </a>
       ). Use the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateKeyFilePassword" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateKeyFilePassword
         </code>
        </span>
       </a>
       option only if the
certificate-key file is encrypted. In all cases, the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       redacts the
password from all logging and reporting output.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       On Linux/BSD, if the private key in the PEM file is encrypted and
you do not specify the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateKeyFilePassword" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateKeyFilePassword
         </code>
        </span>
       </a>
       option, MongoDB prompts for a passphrase.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For more information, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/#std-label-ssl-certificate-password">
        TLS/SSL Certificate Passphrase.
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       On macOS, if the private key in the PEM file is encrypted, you must
explicitly specify the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateKeyFilePassword" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateKeyFilePassword
         </code>
        </span>
       </a>
       option.
Alternatively, you can use a certificate from the secure system
store (see
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateSelector
         </code>
        </span>
       </a>
       ) instead of a PEM
key file or use an unencrypted PEM file.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       On Windows, MongoDB does not support encrypted certificates.
The
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       fails if it encounters an encrypted
PEM file. Use
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateSelector
         </code>
        </span>
       </a>
       instead.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For more information about TLS and MongoDB, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/">
        Configure
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        for TLS/SSL
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl-clients/">
        TLS/SSL Configuration for Clients
       </a>
       .
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.certificateSelector
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.certificateSelector" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.certificateSelector">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Specifies a certificate property in order to select a matching
certificate from the operating system's certificate store to use
for TLS/SSL. Available on Windows and macOS as an alternative to
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateKeyFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateKeyFile
         </code>
         .
        </span>
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateKeyFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateKeyFile
         </code>
        </span>
       </a>
       and
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateSelector
         </code>
        </span>
       </a>
       options are mutually
exclusive. You can only specify one.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateSelector
         </code>
        </span>
       </a>
       accepts an argument of the format
       <code class="leafygreen-ui-1l06pbn">
        &lt;property&gt;=&lt;value&gt;
       </code>
       where the property can be one of the following:
      </p>
      <div class="leafygreen-ui-skkc39" tabindex="0">
       <table class="leafygreen-ui-hr8lsv">
        <thead class="leafygreen-ui-a9ho40">
         <tr data-testid="leafygreen-ui-header-row">
          <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Property
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Value type
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Description
            </div>
           </div>
          </th>
         </tr>
        </thead>
        <tbody>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              subject
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             ASCII string
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Subject name or common name on certificate
            </div>
           </div>
          </td>
         </tr>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              thumbprint
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             hex string
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <p class="leafygreen-ui-1kp3ins">
              A sequence of bytes, expressed as hexadecimal, used to
identify a public key by its SHA-1 digest.
             </p>
             <p class="leafygreen-ui-1kp3ins">
              The
              <code class="leafygreen-ui-1l06pbn">
               thumbprint
              </code>
              is sometimes referred to as a
              <code class="leafygreen-ui-1l06pbn">
               fingerprint
              </code>
              .
             </p>
            </div>
           </div>
          </td>
         </tr>
        </tbody>
       </table>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       When using the system SSL certificate store, OCSP (Online
Certificate Status Protocol) is used to validate the revocation
status of certificates.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       searches the operating system's secure
certificate store for the CA certificates required to validate the
full certificate chain of the specified TLS certificate.
Specifically, the secure certificate store must contain the root CA
and any intermediate CA certificates required to build the full
certificate chain to the TLS certificate.
      </p>
      <div class="leafygreen-ui-1sjx7ru" role="note">
       <h2 class="leafygreen-ui-29m78u">
        Warning
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         If you use
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateSelector
         </code>
         and/or
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.clusterCertificateSelector
           </code>
          </span>
         </a>
         , we
         <strong>
          do not
         </strong>
         recommend
using
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.CAFile" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.CAFile
           </code>
          </span>
         </a>
         or
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterFile" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.clusterFile
           </code>
          </span>
         </a>
         to
specify the root and intermediate CA certificate
        </p>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       For example, if the TLS certificate was signed with a single root
CA certificate, the secure certificate store must contain that root
CA certificate. If the TLS certificate was signed with an
intermediate CA certificate, the secure certificate store must
contain the intermedia CA certificate
       <em>
        and
       </em>
       the root CA certificate.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         You cannot use the
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/rotateCertificates/#mongodb-dbcommand-dbcmd.rotateCertificates">
          <code class="leafygreen-ui-1l06pbn">
           rotateCertificates
          </code>
         </a>
         command or the
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.rotateCertificates/#mongodb-method-db.rotateCertificates">
          <code class="leafygreen-ui-1l06pbn">
           db.rotateCertificates()
          </code>
         </a>
         shell method when using
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.certificateSelector
           </code>
          </span>
         </a>
         or
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#std-option-mongod.--tlsCertificateSelector">
          <code class="leafygreen-ui-1l06pbn">
           --tlsCertificateSelector
          </code>
         </a>
         set to
         <code class="leafygreen-ui-1l06pbn">
          thumbprint
         </code>
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.clusterCertificateSelector
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.clusterCertificateSelector" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.clusterCertificateSelector">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Specifies a certificate property to select a matching certificate
from the operating system's secure certificate store to use for
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-internal-authentication/#std-label-internal-auth-x509">
        internal x.509 membership authentication.
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Available on Windows and macOS as an alternative to
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterFile
         </code>
         .
        </span>
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterFile
         </code>
        </span>
       </a>
       and
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCertificateSelector
         </code>
        </span>
       </a>
       options are mutually
exclusive. You can only specify one.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCertificateSelector
         </code>
        </span>
       </a>
       accepts an argument of the format
       <code class="leafygreen-ui-1l06pbn">
        &lt;property&gt;=&lt;value&gt;
       </code>
       where the property can be one of the following:
      </p>
      <div class="leafygreen-ui-skkc39" tabindex="0">
       <table class="leafygreen-ui-hr8lsv">
        <thead class="leafygreen-ui-a9ho40">
         <tr data-testid="leafygreen-ui-header-row">
          <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Property
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Value type
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Description
            </div>
           </div>
          </th>
         </tr>
        </thead>
        <tbody>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              subject
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             ASCII string
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Subject name or common name on certificate
            </div>
           </div>
          </td>
         </tr>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              thumbprint
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             hex string
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <p class="leafygreen-ui-1kp3ins">
              A sequence of bytes, expressed as hexadecimal, used to
identify a public key by its SHA-1 digest.
             </p>
             <p class="leafygreen-ui-1kp3ins">
              The
              <code class="leafygreen-ui-1l06pbn">
               thumbprint
              </code>
              is sometimes referred to as a
              <code class="leafygreen-ui-1l06pbn">
               fingerprint
              </code>
              .
             </p>
            </div>
           </div>
          </td>
         </tr>
        </tbody>
       </table>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       searches the operating system's secure
certificate store for the CA certificates required to validate the
full certificate chain of the specified cluster certificate.
Specifically, the secure certificate store must contain the root CA
and any intermediate CA certificates required to build the full
certificate chain to the cluster certificate.
      </p>
      <div class="leafygreen-ui-1sjx7ru" role="note">
       <h2 class="leafygreen-ui-29m78u">
        Warning
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         If you use
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.certificateSelector
           </code>
          </span>
         </a>
         and/or
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCertificateSelector
         </code>
         , we
         <strong>
          do not
         </strong>
         recommend using
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.CAFile" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.CAFile
           </code>
          </span>
         </a>
         or
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCAFile" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.clusterCAFile
           </code>
          </span>
         </a>
         to specify
the root and intermediate CA certificate.
        </p>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       For example, if the cluster certificate was signed with a single root
CA certificate, the secure certificate store must contain that root
CA certificate. If the cluster certificate was signed with an
intermediate CA certificate, the secure certificate store must
contain the intermediate CA certificate
       <em>
        and
       </em>
       the root CA
certificate.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       /
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       logs a warning on
connection if the presented x.509 certificate expires within
       <code class="leafygreen-ui-1l06pbn">
        30
       </code>
       days of the
       <code class="leafygreen-ui-1l06pbn">
        mongod/mongos
       </code>
       host system time.
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.clusterFile
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.clusterFile" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.clusterFile">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The
       <code class="file docutils literal">
        <span class="pre">
         .pem
        </span>
       </code>
       file that contains the x.509 certificate-key file
for
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-x509-member-authentication/#std-label-x509-internal-authentication">
        membership authentication
       </a>
       for the
cluster or replica set.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       On macOS or Windows, you can use the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCertificateSelector
         </code>
        </span>
       </a>
       option to specify a
certificate from the operating system's secure certificate store
instead of a PEM key file.
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterFile
         </code>
        </span>
       </a>
       and
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCertificateSelector
         </code>
        </span>
       </a>
       options are mutually
exclusive. You can only specify one.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterFile
         </code>
        </span>
       </a>
       does not specify the
       <code class="leafygreen-ui-1l06pbn">
        .pem
       </code>
       file
for internal cluster authentication or the alternative
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCertificateSelector
         </code>
        </span>
       </a>
       , the cluster uses the
       <code class="leafygreen-ui-1l06pbn">
        .pem
       </code>
       file specified in the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateKeyFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          certificateKeyFile
         </code>
        </span>
       </a>
       setting or the certificate returned by the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.certificateSelector
         </code>
         .
        </span>
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If using x.509 authentication,
       <code class="leafygreen-ui-1l06pbn">
        --tlsCAFile
       </code>
       or
       <code class="leafygreen-ui-1l06pbn">
        tls.CAFile
       </code>
       must be specified unless using
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#std-option-mongod.--tlsCertificateSelector">
        <code class="leafygreen-ui-1l06pbn">
         --tlsCertificateSelector
        </code>
        .
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       /
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       logs a warning on
connection if the presented x.509 certificate expires within
       <code class="leafygreen-ui-1l06pbn">
        30
       </code>
       days of the
       <code class="leafygreen-ui-1l06pbn">
        mongod/mongos
       </code>
       host system time.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For more information about TLS and MongoDB, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/">
        Configure
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        for TLS/SSL
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl-clients/">
        TLS/SSL Configuration for Clients
       </a>
       .
      </p>
      <div class="leafygreen-ui-85da11" role="note">
       <h2 class="leafygreen-ui-1ac4g5h">
        Important
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         For Windows
         <strong>
          only
         </strong>
         , MongoDB does not support encrypted PEM files.
The
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
          <code class="leafygreen-ui-1l06pbn">
           mongod
          </code>
         </a>
         fails to start if it encounters an encrypted
PEM file. To securely store and access a certificate for use with
membership authentication on Windows, use
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.clusterCertificateSelector
           </code>
           .
          </span>
         </a>
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.clusterPassword
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.clusterPassword" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.clusterPassword">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The password to de-crypt the x.509 certificate-key file specified
with
       <code class="leafygreen-ui-1l06pbn">
        --sslClusterFile
       </code>
       . Use the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterPassword" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterPassword
         </code>
        </span>
       </a>
       option
only if the certificate-key file is encrypted. In all cases,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       redacts the
password from all logging and reporting output.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       On Linux/BSD, if the private key in the x.509 file is encrypted and
you do not specify the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterPassword" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterPassword
         </code>
        </span>
       </a>
       option,
MongoDB prompts for a passphrase.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For more information, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/#std-label-ssl-certificate-password">
        TLS/SSL Certificate Passphrase.
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       On macOS, if the private key in the x.509 file is encrypted, you
must explicitly specify the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterPassword" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterPassword
         </code>
        </span>
       </a>
       option. Alternatively, you can either use a certificate from the
secure system store (see
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCertificateSelector
         </code>
        </span>
       </a>
       )
instead of a cluster PEM file or use an unencrypted PEM file.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       On Windows, MongoDB does not support encrypted certificates. The
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       fails if it encounters an encrypted PEM file.
Use
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCertificateSelector
         </code>
         .
        </span>
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For more information about TLS and MongoDB, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/">
        Configure
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        for TLS/SSL
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl-clients/">
        TLS/SSL Configuration for Clients
       </a>
       .
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.clusterAuthX509
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.clusterAuthX509" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.clusterAuthX509">
       </div>
      </a>
     </dt>
     <dd>
      <div>
       <p>
        <em>
         New in version 7.0
        </em>
        .
       </p>
      </div>
      <script class="structured_data" type="application/ld+json">
       {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"net:\n   tls:\n     clusterAuthX509:\n       attributes: &lt;string&gt;\n       extensionValue: &lt;string&gt;","programmingLanguage":"YAML"}
      </script>
      <div class="css-16lmvu9">
       <div class="leafygreen-ui-196mwvg">
        <div class="leafygreen-ui-yzcs8i">
         <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">net:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">tls:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">     <span class="lg-highlight-attr">clusterAuthX509:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">       <span class="lg-highlight-attr">attributes:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">       <span class="lg-highlight-attr">extensionValue:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr></tbody></table></code></pre>
         <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
          <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
           <div class="leafygreen-ui-xhlipt">
            <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
             <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
             </path>
            </svg>
           </div>
          </button>
         </div>
        </div>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.clusterAuthX509.attributes
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.clusterAuthX509.attributes" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.clusterAuthX509.attributes">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <div>
       <p>
        <em>
         New in version 7.0
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       Specifies a set of X.509 Distinguished Name (DN) attributes and values that
the server expects cluster member nodes to contain in their certificate
subject names.  This lets you use certificates that don't contain DC,
O, and OU values to authenticate cluster members.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       When
       <code class="leafygreen-ui-1l06pbn">
        attributes
       </code>
       is set, MongoDB matches certificates using the DN
and ignores extension values.
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.clusterAuthX509.extensionValue
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.clusterAuthX509.extensionValue" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.clusterAuthX509.extensionValue">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <div>
       <p>
        <em>
         New in version 7.0
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       Specifies an extension value that corresponds to the MongoDB cluster
membership extension
       <span class="leafygreen-ui-vm4wms" tabindex="0">
        OID
       </span>
       , 1.3.6.1.4.1.34601.2.1.2, that the server expects cluster
member nodes to contain in their certificates. This allows you
to use certificates that don't contain DC, O, and OU values to authenticate
cluster members.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       When
       <code class="leafygreen-ui-1l06pbn">
        extensionValue
       </code>
       is set, MongoDB matches certificates using
certificate extension values and ignores the Distinguished Name (DN).
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.CAFile
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.CAFile" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.CAFile">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The
       <code class="file docutils literal">
        <span class="pre">
         .pem
        </span>
       </code>
       file that contains the root certificate chain
from the Certificate Authority. Specify the file name of the
       <code class="file docutils literal">
        <span class="pre">
         .pem
        </span>
       </code>
       file using relative or absolute paths.
      </p>
      <dl>
       <dt>
        Windows/macOS Only
       </dt>
       <dd class="css-1ufxuu7">
        If using
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.tls.certificateSelector
          </code>
         </span>
        </a>
        and/or
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.tls.clusterCertificateSelector
          </code>
         </span>
        </a>
        , do
        <strong>
         not
        </strong>
        use
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.CAFile" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.tls.CAFile
          </code>
         </span>
        </a>
        to specify the root and intermediate CA
certificates. Store all CA certificates required to validate the
full trust chain of the
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.tls.certificateSelector
          </code>
         </span>
        </a>
        and/or
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.tls.clusterCertificateSelector
          </code>
         </span>
        </a>
        certificates
in the secure certificate store.
       </dd>
      </dl>
      <p class="leafygreen-ui-1kp3ins">
       For more information about TLS and MongoDB, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/">
        Configure
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        for TLS/SSL
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl-clients/">
        TLS/SSL Configuration for Clients
       </a>
       .
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.clusterCAFile
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.clusterCAFile" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.clusterCAFile">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The
       <code class="file docutils literal">
        <span class="pre">
         .pem
        </span>
       </code>
       file that contains the root certificate chain
from the Certificate Authority used to validate the certificate
presented by a client establishing a connection. Specify the file
name of the
       <code class="file docutils literal">
        <span class="pre">
         .pem
        </span>
       </code>
       file using relative or absolute paths.
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCAFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCAFile
         </code>
        </span>
       </a>
       requires that
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.CAFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.CAFile
         </code>
        </span>
       </a>
       is set.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCAFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCAFile
         </code>
        </span>
       </a>
       does not specify the
       <code class="file docutils literal">
        <span class="pre">
         .pem
        </span>
       </code>
       file for validating the certificate from a client establishing a
connection, the cluster uses the
       <code class="file docutils literal">
        <span class="pre">
         .pem
        </span>
       </code>
       file specified in the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.CAFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.CAFile
         </code>
        </span>
       </a>
       option.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCAFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCAFile
         </code>
        </span>
       </a>
       lets you use separate Certificate
Authorities to verify the client to server and server to client
portions of the TLS handshake.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Starting in 4.0, on macOS or Windows, you can use a certificate from
the operating system's secure store instead of a PEM key file. See
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCertificateSelector
         </code>
        </span>
       </a>
       . When using the secure
store, you do not need to, but can, also specify the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCAFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.clusterCAFile
         </code>
         .
        </span>
       </a>
      </p>
      <dl>
       <dt>
        Windows/macOS Only
       </dt>
       <dd class="css-1ufxuu7">
        If using
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.tls.certificateSelector
          </code>
         </span>
        </a>
        and/or
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.tls.clusterCertificateSelector
          </code>
         </span>
        </a>
        , do
        <strong>
         not
        </strong>
        use
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCAFile" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.tls.clusterCAFile
          </code>
         </span>
        </a>
        to specify the root and
intermediate CA certificates. Store all CA certificates required to
validate the full trust chain of the
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.tls.certificateSelector
          </code>
         </span>
        </a>
        and/or
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.clusterCertificateSelector" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           net.tls.clusterCertificateSelector
          </code>
         </span>
        </a>
        certificates in the
secure certificate store.
       </dd>
      </dl>
      <p class="leafygreen-ui-1kp3ins">
       For more information about TLS and MongoDB, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/">
        Configure
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        for TLS/SSL
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl-clients/">
        TLS/SSL Configuration for Clients
       </a>
       .
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.CRLFile
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.CRLFile" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.CRLFile">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The
       <code class="file docutils literal">
        <span class="pre">
         .pem
        </span>
       </code>
       file that contains the Certificate Revocation
List. Specify the file name of the
       <code class="file docutils literal">
        <span class="pre">
         .pem
        </span>
       </code>
       file using relative or
absolute paths.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <ul class="leafygreen-ui-rioki0">
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           You cannot specify
           <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.CRLFile" target="_self">
            <span>
             <code class="leafygreen-ui-1l06pbn">
              net.tls.CRLFile
             </code>
            </span>
           </a>
           on macOS. Instead, you can
use the system SSL certificate store, which uses OCSP (Online
Certificate Status Protocol) to validate the revocation status
of certificates. See
           <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.certificateSelector" target="_self">
            <span>
             <code class="leafygreen-ui-1l06pbn">
              net.tls.certificateSelector
             </code>
            </span>
           </a>
           to use the
system SSL certificate store.
          </p>
         </li>
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           To check for certificate revocation, MongoDB
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.ocspEnabled">
            <code class="leafygreen-ui-1l06pbn">
             enables
            </code>
           </a>
           the use of OCSP
(Online Certificate Status Protocol) by default as an alternative
to specifying a CRL file or using the system SSL certificate
store.
          </p>
         </li>
        </ul>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       For more information about TLS and MongoDB, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/">
        Configure
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        for TLS/SSL
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl-clients/">
        TLS/SSL Configuration for Clients
       </a>
       .
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.allowConnectionsWithoutCertificates
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.allowConnectionsWithoutCertificates" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.allowConnectionsWithoutCertificates">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : false
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <code class="leafygreen-ui-1l06pbn">
        false
       </code>
       , all clients must provide client TLS certificates. If
       <code class="leafygreen-ui-1l06pbn">
        true
       </code>
       ,
clients don't need to provide client certificates, but
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       encrypts the TLS/SSL connection.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If a client provides a client certificate, regardless of what value you set
for
       <code class="leafygreen-ui-1l06pbn">
        net.tls.allowConnectionsWithoutCertificates
       </code>
       ,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       performs certificate validation using the root
certificate chain specified by
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.CAFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          CAFile
         </code>
        </span>
       </a>
       , or the system
CA store if
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.tlsUseSystemCA">
        <code class="leafygreen-ui-1l06pbn">
         tlsUseSystemCA
        </code>
       </a>
       is
       <code class="leafygreen-ui-1l06pbn">
        true
       </code>
       ,  and rejects
clients with invalid certificates.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Use the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.allowConnectionsWithoutCertificates" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.allowConnectionsWithoutCertificates
         </code>
        </span>
       </a>
       option if you
have a mixed deployment that includes clients that do not or cannot present
certificates to the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        .
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For more information about TLS and MongoDB, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/">
        Configure
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        for TLS/SSL
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl-clients/">
        TLS/SSL Configuration for Clients
       </a>
       .
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.allowInvalidCertificates
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.allowInvalidCertificates" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.allowInvalidCertificates">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : false
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Enable or disable the validation checks for TLS certificates on other
servers in the cluster and allows the use of invalid certificates to
connect.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         If you specify
         <code class="leafygreen-ui-1l06pbn">
          --tlsAllowInvalidCertificates
         </code>
         or
         <code class="leafygreen-ui-1l06pbn">
          tls.allowInvalidCertificates:
true
         </code>
         when using x.509 authentication, an invalid certificate is
only sufficient to establish a TLS connection but is
         <em>
          insufficient
         </em>
         for authentication.
        </p>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       When using the
       <code class="leafygreen-ui-1l06pbn">
        net.tls.allowInvalidCertificates
       </code>
       setting, MongoDB
logs a warning regarding the use of the invalid certificate.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For more information about TLS and MongoDB, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/#std-label-configure-mongod-mongos-for-tls-ssl">
        Configure
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        for TLS/SSL
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-internal-authentication/#std-label-inter-process-auth">
        Self-Managed Internal/Membership Authentication.
       </a>
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.allowInvalidHostnames
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.allowInvalidHostnames" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.allowInvalidHostnames">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : false
      </p>
      <p class="leafygreen-ui-1kp3ins">
       When
       <code class="leafygreen-ui-1l06pbn">
        net.tls.allowInvalidHostnames
       </code>
       is
       <code class="leafygreen-ui-1l06pbn">
        true
       </code>
       , MongoDB disables
the validation of the hostnames in TLS certificates. This allows
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       to connect to other MongoDB
instances in the cluster, even if the hostname of their certificates does not
match the specified hostname.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For more information about TLS and MongoDB, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/#std-label-configure-mongod-mongos-for-tls-ssl">
        Configure
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        for TLS/SSL.
       </a>
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.disabledProtocols
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.disabledProtocols" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.disabledProtocols">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Prevents a MongoDB server running with TLS from accepting
incoming connections that use a specific protocol or protocols. To
specify multiple protocols, use a comma separated list of protocols,
but do not use spaces after the commas. If you include a space before
a protocol name, the server interprets it as an unrecognized protocol
and doesn't start.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.disabledProtocols" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.disabledProtocols
         </code>
        </span>
       </a>
       recognizes the following protocols:
       <code class="leafygreen-ui-1l06pbn">
        TLS1_0
       </code>
       ,
       <code class="leafygreen-ui-1l06pbn">
        TLS1_1
       </code>
       ,
       <code class="leafygreen-ui-1l06pbn">
        TLS1_2
       </code>
       , and
       <code class="leafygreen-ui-1l06pbn">
        TLS1_3
       </code>
       .
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         On macOS, you cannot disable
         <code class="leafygreen-ui-1l06pbn">
          TLS1_1
         </code>
         and leave both
         <code class="leafygreen-ui-1l06pbn">
          TLS1_0
         </code>
         and
         <code class="leafygreen-ui-1l06pbn">
          TLS1_2
         </code>
         enabled. You must disable at least one of the other
two, for example,
         <code class="leafygreen-ui-1l06pbn">
          TLS1_0,TLS1_1
         </code>
         .
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         To list multiple protocols, specify as a comma separated list of
protocols without spaces after the commas. For example
         <code class="leafygreen-ui-1l06pbn">
          TLS1_0,TLS1_1
         </code>
         .
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         Specifying an unrecognized protocol or including a space after a
comma prevents the server from starting.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         The specified disabled protocols overrides any default disabled
protocols.
        </p>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       MongoDB disables the use of TLS 1.0 if TLS 1.1+ is available on the
system. To enable TLS 1.0, specify
       <code class="leafygreen-ui-1l06pbn">
        none
       </code>
       to
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.disabledProtocols" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.disabledProtocols
         </code>
         .
        </span>
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Members of replica sets and sharded clusters must speak at least one
protocol in common.
      </p>
      <div class="leafygreen-ui-13vw3ie" role="note">
       <h2 class="leafygreen-ui-1fn4p2b">
        Tip
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         See also:
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/#std-label-ssl-disallow-protocols">
          Disallow Protocols
         </a>
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.FIPSMode
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.FIPSMode" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.FIPSMode">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : false
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Enable or disable the use of the FIPS mode of the  TLS
library for the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       . Your system must have a FIPS
compliant library to use the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.FIPSMode" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          net.tls.FIPSMode
         </code>
        </span>
       </a>
       option.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         FIPS-compatible TLS/SSL is
available only in
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.mongodb.com/products/mongodb-enterprise-advanced?tck=docs_server" target="_self">
          <span>
           MongoDB Enterprise
          </span>
         </a>
         . See
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-fips/">
          Configure MongoDB for FIPS
         </a>
         for more information.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.tls.logVersions
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.tls.logVersions" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.tls.logVersions">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Instructs
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       to log a
message when a client connects using a specified TLS version.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Specify either a single TLS version or a comma-separated list of
multiple TLS versions.
      </p>
      <div class="leafygreen-ui-vg7qwp" role="note">
       <h2 class="leafygreen-ui-2xicti">
        Example
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         To instruct
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
          <code class="leafygreen-ui-1l06pbn">
           mongos
          </code>
         </a>
         or
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
          <code class="leafygreen-ui-1l06pbn">
           mongod
          </code>
         </a>
         to
log a message when a client connects using either TLS 1.2 or
TLS 1.3, set
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-net.tls.logVersions" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            net.tls.logVersions
           </code>
          </span>
         </a>
         to
         <code class="leafygreen-ui-1l06pbn">
          "TLS1_2,TLS1_3"
         </code>
         .
        </p>
       </div>
      </div>
     </dd>
    </dl>
   </section>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     <code class="leafygreen-ui-1l06pbn">
      net.compression
     </code>
     Option
     <a class="headerlink leafygreen-ui-1kepx47" href="#net.compression-option" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="net.compression-option">
      </div>
     </a>
    </h4>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"net:\n   compression:\n      compressors: &lt;string&gt;","programmingLanguage":"YAML"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">net:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">compression:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">compressors:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       net.compression.compressors
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-net.compression.compressors" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-net.compression.compressors">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : snappy,zstd,zlib
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Specifies the default compressor(s) to use for
communication between this
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       instance and:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         other members of the deployment if the instance is part of a replica set or a sharded cluster
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#mongodb-binary-bin.mongosh" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            mongosh
           </code>
          </span>
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         drivers that support the
         <code class="leafygreen-ui-1l06pbn">
          OP_COMPRESSED
         </code>
         message format.
        </p>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       MongoDB supports the following compressors:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-snappy">
          snappy
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-zlib">
          zlib
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-zstd">
          zstd
         </a>
        </p>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       To disable network compression, set the value to
       <code class="leafygreen-ui-1l06pbn">
        disabled
       </code>
       .
      </p>
      <div class="leafygreen-ui-85da11" role="note">
       <h2 class="leafygreen-ui-1ac4g5h">
        Important
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Messages are compressed when both parties enable network
compression. Otherwise, messages between the parties are
uncompressed.
        </p>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       If you specify multiple compressors, then the order in which you list
the compressors matter as well as the communication initiator. For
example, if
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#mongodb-binary-bin.mongosh" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          mongosh
         </code>
        </span>
       </a>
       specifies the following network
compressors
       <code class="leafygreen-ui-1l06pbn">
        zlib,snappy
       </code>
       and the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       specifies
       <code class="leafygreen-ui-1l06pbn">
        snappy,zlib
       </code>
       , messages between
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#mongodb-binary-bin.mongosh" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          mongosh
         </code>
        </span>
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       uses
       <code class="leafygreen-ui-1l06pbn">
        zlib
       </code>
       .
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If the parties do not share at least one common compressor, messages
between the parties are uncompressed. For example, if
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#mongodb-binary-bin.mongosh" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          mongosh
         </code>
        </span>
       </a>
       specifies the network compressor
       <code class="leafygreen-ui-1l06pbn">
        zlib
       </code>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       specifies
       <code class="leafygreen-ui-1l06pbn">
        snappy
       </code>
       , messages
between
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#mongodb-binary-bin.mongosh" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          mongosh
         </code>
        </span>
       </a>
       and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       are not
compressed.
      </p>
     </dd>
    </dl>
   </section>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    <code class="leafygreen-ui-1l06pbn">
     security
    </code>
    Options
    <a class="headerlink leafygreen-ui-1kepx47" href="#security-options" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="security-options">
     </div>
    </a>
   </h3>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"security:\n   keyFile: &lt;string&gt;\n   clusterAuthMode: &lt;string&gt;\n   authorization: &lt;string&gt;\n   transitionToAuth: &lt;boolean&gt;\n   javascriptEnabled:  &lt;boolean&gt;\n   redactClientLogData: &lt;boolean&gt;\n   clusterIpSourceAllowlist:\n     - &lt;string&gt;\n   sasl:\n      hostName: &lt;string&gt;\n      serviceName: &lt;string&gt;\n      saslauthdSocketPath: &lt;string&gt;\n   enableEncryption: &lt;boolean&gt;\n   encryptionCipherMode: &lt;string&gt;\n   encryptionKeyFile: &lt;string&gt;\n   kmip:\n      keyIdentifier: &lt;string&gt;\n      rotateMasterKey: &lt;boolean&gt;\n      serverName: &lt;string&gt;\n      port: &lt;string&gt;\n      clientCertificateFile: &lt;string&gt;\n      clientCertificatePassword: &lt;string&gt;\n      clientCertificateSelector: &lt;string&gt;\n      serverCAFile: &lt;string&gt;\n      connectRetries: &lt;int&gt;\n      connectTimeoutMS: &lt;int&gt;\n   ldap:\n      servers: &lt;string&gt;\n      bind:\n         method: &lt;string&gt;\n         saslMechanisms: &lt;string&gt;\n         queryUser: &lt;string&gt;\n         queryPassword: &lt;string&gt;\n         useOSDefaults: &lt;boolean&gt;\n      transportSecurity: &lt;string&gt;\n      timeoutMS: &lt;int&gt;\n      userToDNMapping: &lt;string&gt;\n      authz:\n         queryTemplate: &lt;string&gt;\n      validateLDAPServerConfig: &lt;boolean&gt;","programmingLanguage":"YAML"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">security:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">keyFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">clusterAuthMode:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">authorization:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">transitionToAuth:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">javascriptEnabled:</span>  <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">redactClientLogData:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">clusterIpSourceAllowlist:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">     <span class="lg-highlight-bullet">-</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">sasl:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">hostName:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">serviceName:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">saslauthdSocketPath:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">enableEncryption:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">encryptionCipherMode:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">encryptionKeyFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">kmip:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">keyIdentifier:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">rotateMasterKey:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">serverName:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">port:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clientCertificateFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clientCertificatePassword:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clientCertificateSelector:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">serverCAFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">connectRetries:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">connectTimeoutMS:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">ldap:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">servers:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">bind:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">method:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">saslMechanisms:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">queryUser:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">queryPassword:</span> <span class="lg-highlight-string">&lt;string</span> <span class="lg-highlight-string">|</span> <span class="lg-highlight-string">array&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">useOSDefaults:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">transportSecurity:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">timeoutMS:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">userToDNMapping:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">authz:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">queryTemplate:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">validateLDAPServerConfig:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      security.keyFile
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.keyFile" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.keyFile">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The path to a key file that stores the shared secret
that MongoDB instances use to authenticate to each other in a
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-sharded-cluster">
       sharded cluster
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-replica-set">
       replica set
      </a>
      .
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.keyFile" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         keyFile
        </code>
       </span>
      </a>
      implies
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.authorization" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.authorization
        </code>
       </span>
      </a>
      . See
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-internal-authentication/#std-label-inter-process-auth">
       Self-Managed Internal/Membership Authentication
      </a>
      for more
information.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-internal-authentication/#std-label-internal-auth-keyfile">
       Keyfiles for internal membership authentication
      </a>
      use YAML format to allow for multiple keys in a
keyfile. The YAML format accepts either:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        A single key string (same as in earlier versions)
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        A sequence of key strings
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      The YAML format is compatible with the existing single-key
keyfiles that use the text file format.
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      security.clusterAuthMode
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.clusterAuthMode" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.clusterAuthMode">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : keyFile
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The authentication mode used for cluster authentication. If you use
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-x509-member-authentication/#std-label-x509-internal-authentication">
       internal x.509 authentication
      </a>
      ,
specify so here. This option can have one of the following values:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width: 20%;"/>
        <col style="width: 40%;"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Value
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Description
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             keyFile
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            Use a keyfile for authentication.
Accept only keyfiles.
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             sendKeyFile
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            For rolling upgrade purposes. Send a keyfile for
authentication but can accept both keyfiles and x.509
certificates.
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             sendX509
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            For rolling upgrade purposes. Send the x.509 certificate for
authentication but can accept both keyfiles and x.509
certificates.
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             x509
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            Recommended. Send the x.509 certificate for authentication and
accept only x.509 certificates.
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      If
      <code class="leafygreen-ui-1l06pbn">
       --tlsCAFile
      </code>
      or
      <code class="leafygreen-ui-1l06pbn">
       tls.CAFile
      </code>
      is not
specified and you are not using x.509 authentication, you must set the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.tlsUseSystemCA">
       <code class="leafygreen-ui-1l06pbn">
        tlsUseSystemCA
       </code>
      </a>
      parameter to
      <code class="leafygreen-ui-1l06pbn">
       true
      </code>
      . This makes MongoDB use
the system-wide CA certificate store when connecting to a TLS-enabled server.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      If using x.509 authentication,
      <code class="leafygreen-ui-1l06pbn">
       --tlsCAFile
      </code>
      or
      <code class="leafygreen-ui-1l06pbn">
       tls.CAFile
      </code>
      must be specified unless using
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#std-option-mongod.--tlsCertificateSelector">
       <code class="leafygreen-ui-1l06pbn">
        --tlsCertificateSelector
       </code>
       .
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      For more information about TLS and MongoDB, see
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl/">
       Configure
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       and
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
       for TLS/SSL
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/configure-ssl-clients/">
       TLS/SSL Configuration for Clients
      </a>
      .
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      security.authorization
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.authorization" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.authorization">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : disabled
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Enable or disable Role-Based Access Control (RBAC) to govern each
user's access to database resources and operations.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Set this option to one of the following:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width: 20%;"/>
        <col style="width: 40%;"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Value
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Description
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             enabled
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            A user can access only the database resources and actions for
which they have been granted privileges.
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             disabled
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            A user can access any database and perform any action.
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      See
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/authorization/">
       Role-Based Access Control in Self-Managed Deployments
      </a>
      for more information.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.authorization" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.authorization
        </code>
       </span>
      </a>
      setting is available only for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       .
      </a>
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      security.transitionToAuth
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.transitionToAuth" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.transitionToAuth">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : false
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Allows the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      to accept and
create authenticated and non-authenticated connections to and from other
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      instances in the deployment.
Used for performing rolling transition of replica sets or sharded clusters
from a no-auth configuration to
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-internal-authentication/#std-label-inter-process-auth">
       internal authentication
      </a>
      .
Requires specifying a
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-internal-authentication/#std-label-inter-process-auth">
       internal authentication
      </a>
      mechanism such as
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.keyFile" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.keyFile
        </code>
        .
       </span>
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      For example, if using
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-internal-authentication/#std-label-internal-auth-keyfile">
       keyfiles
      </a>
      for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-internal-authentication/#std-label-inter-process-auth">
       internal authentication
      </a>
      , the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      creates
an authenticated connection with any
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      in the deployment using a matching keyfile. If the security mechanisms do
not match, the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      utilizes a non-authenticated connection instead.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      A
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      running with
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.transitionToAuth" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.transitionToAuth
        </code>
       </span>
      </a>
      does not enforce
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/authorization/#std-label-authorization">
       user access
controls
      </a>
      . Users may connect to your deployment without any
access control checks and perform read, write, and administrative operations.
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        A
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        or
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
        </a>
        running with
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-internal-authentication/#std-label-inter-process-auth">
         internal authentication
        </a>
        and
        <em>
         without
        </em>
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.transitionToAuth" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           security.transitionToAuth
          </code>
         </span>
        </a>
        requires clients to connect
using
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/authorization/#std-label-authorization">
         user access controls
        </a>
        . Update clients to
connect to the
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        or
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
        </a>
        using the appropriate
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-users/#std-label-users">
         user
        </a>
        prior to restarting
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        or
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
        </a>
        without
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.transitionToAuth" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           security.transitionToAuth
          </code>
          .
         </span>
        </a>
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      security.javascriptEnabled
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.javascriptEnabled" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.javascriptEnabled">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : true
     </p>
     <div class="leafygreen-ui-85da11" role="note">
      <h2 class="leafygreen-ui-1ac4g5h">
       Important
      </h2>
      <h3 class="leafygreen-ui-144d5kf">
       <strong>
        Server-side JavaScript Deprecated
       </strong>
      </h3>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Starting in MongoDB 8.0, server-side JavaScript functions
(
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/operator/aggregation/accumulator/#mongodb-group-grp.-accumulator">
         <code class="leafygreen-ui-1l06pbn">
          $accumulator
         </code>
        </a>
        ,
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/operator/aggregation/function/#mongodb-expression-exp.-function">
         <code class="leafygreen-ui-1l06pbn">
          $function
         </code>
        </a>
        ,
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/operator/query/where/#mongodb-query-op.-where">
         <code class="leafygreen-ui-1l06pbn">
          $where
         </code>
        </a>
        ) are
deprecated. MongoDB logs a warning when you run these functions.
       </p>
       <p class="leafygreen-ui-1kp3ins">
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/map-reduce/#std-label-map-reduce">
         Map-reduce
        </a>
        is deprecated starting in MongoDB
5.0.
       </p>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      Enables or disables
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/server-side-javascript/">
       server-side JavaScript execution
      </a>
      . When disabled, you cannot use
operations that perform server-side execution of JavaScript code,
such as the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/operator/query/where/#mongodb-query-op.-where">
       <code class="leafygreen-ui-1l06pbn">
        $where
       </code>
      </a>
      query operator,
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/mapReduce/#mongodb-dbcommand-dbcmd.mapReduce">
       <code class="leafygreen-ui-1l06pbn">
        mapReduce
       </code>
      </a>
      command,
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/operator/aggregation/accumulator/#mongodb-group-grp.-accumulator">
       <code class="leafygreen-ui-1l06pbn">
        $accumulator
       </code>
      </a>
      , and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/operator/aggregation/function/#mongodb-expression-exp.-function">
       <code class="leafygreen-ui-1l06pbn">
        $function
       </code>
       .
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      If you do not use these operations, disable server-side scripting.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.javascriptEnabled" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.javascriptEnabled
        </code>
       </span>
      </a>
      is available for both
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      . In earlier versions, the
setting is only available for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       .
      </a>
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      security.redactClientLogData
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.redactClientLogData" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.redactClientLogData">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Available in MongoDB Enterprise only.
      </em>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      A
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      running with
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.redactClientLogData" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.redactClientLogData
        </code>
       </span>
      </a>
      redacts any message accompanying a given
log event before logging. This prevents the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      from writing
potentially sensitive data stored on the database to the diagnostic log.
Metadata such as error or operation codes, line numbers, and source file
names are still visible in the logs.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Use
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.redactClientLogData" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.redactClientLogData
        </code>
       </span>
      </a>
      in conjunction with
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-encryption-at-rest/">
       Encryption at Rest
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-transport-encryption/">
       TLS/SSL (Transport Encryption)
      </a>
      to assist compliance with
regulatory requirements.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      For example, a MongoDB deployment might store Personally Identifiable
Information (PII) in one or more collections. The
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      logs events
such as those related to CRUD operations, sharding metadata, etc. It is
possible that the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      may expose PII as a part of these logging
operations. A
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      running with
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.redactClientLogData" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.redactClientLogData
        </code>
       </span>
      </a>
      removes any message
accompanying these events before being output to the log, effectively
removing the PII.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Diagnostics on a
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      running with
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.redactClientLogData" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.redactClientLogData
        </code>
       </span>
      </a>
      may be more difficult
due to the lack of data related to a log event. See the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/administration/monitoring/#std-label-monitoring-log-redaction">
       process logging
      </a>
      manual page for an
example of the effect of
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.redactClientLogData" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.redactClientLogData
        </code>
       </span>
      </a>
      on log output.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      On a running
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      , use
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setParameter/#mongodb-dbcommand-dbcmd.setParameter">
       <code class="leafygreen-ui-1l06pbn">
        setParameter
       </code>
      </a>
      with the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.redactClientLogData">
       <code class="leafygreen-ui-1l06pbn">
        redactClientLogData
       </code>
      </a>
      parameter to configure this setting.
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      security.clusterIpSourceAllowlist
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.clusterIpSourceAllowlist" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.clusterIpSourceAllowlist">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : list
     </p>
     <div>
      <p>
       <em>
        New in version 5.0
       </em>
       .
      </p>
     </div>
     <div>
      <p>
       <em>
        Changed in version 5.2
       </em>
       .
      </p>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      A list of IP addresses/CIDR (
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://tools.ietf.org/html/rfc4632" rel="noopener noreferrer">
       <span>
        Classless Inter-Domain Routing
       </span>
       <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
        <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
        </path>
        <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
        </path>
       </svg>
      </a>
      ) ranges against which the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      validates authentication requests from other
members of the replica set and, if part of a sharded cluster, the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      instances. The
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
      verifies
that the originating IP is either explicitly in the list or belongs
to a CIDR range in the list. If the IP address is not present, the
server does not authenticate the
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
      or
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
      .
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <code class="leafygreen-ui-1l06pbn">
       security.clusterIpSourceAllowlist
      </code>
      has no effect on a
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
      started without
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/authentication/#std-label-authentication">
       authentication.
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Starting in MongoDB 5.2, you can configure
      <code class="leafygreen-ui-1l06pbn">
       security.clusterIpSourceAllowlist
      </code>
      on a running
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
      or
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
      using
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setParameter/#mongodb-dbcommand-dbcmd.setParameter">
       <code class="leafygreen-ui-1l06pbn">
        setParameter
       </code>
       .
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      This example updates
      <code class="leafygreen-ui-1l06pbn">
       security.clusterIpSourceAllowlist
      </code>
      during runtime to include the IP addresses
      <code class="leafygreen-ui-1l06pbn">
       "1.1.1.1/24"
      </code>
      ,
      <code class="leafygreen-ui-1l06pbn">
       "2.2.2.2/16"
      </code>
      , and
      <code class="leafygreen-ui-1l06pbn">
       "3.3.3.3"
      </code>
      .
     </p>
     <script class="structured_data" type="application/ld+json">
      {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"db.adminCommand( {\n   setParameter: 1,\n   \"clusterIpSourceAllowlist\": [\"1.1.1.1/24\", \"2.2.2.2/16\", \"3.3.3.3\"]\n} );","programmingLanguage":"JavaScript"}
     </script>
     <div class="css-16lmvu9">
      <div class="leafygreen-ui-196mwvg">
       <div class="leafygreen-ui-1b1bvay">
        <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">db.<span class="lg-highlight-title lg-highlight-function">adminCommand</span>( {</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">setParameter</span>: <span class="lg-highlight-number">1</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"clusterIpSourceAllowlist"</span>: [<span class="lg-highlight-string">"1.1.1.1/24"</span>, <span class="lg-highlight-string">"2.2.2.2/16"</span>, <span class="lg-highlight-string">"3.3.3.3"</span>]</td></tr><tr class=""><td class="leafygreen-ui-7razhx">} );</td></tr></tbody></table></code></pre>
        <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
         <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
          <div class="leafygreen-ui-xhlipt">
           <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
            <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
            </path>
           </svg>
          </div>
         </button>
        </div>
       </div>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      This example updates
      <code class="leafygreen-ui-1l06pbn">
       security.clusterIpSourceAllowlist
      </code>
      during
runtime to exclude all IP addresses:
     </p>
     <script class="structured_data" type="application/ld+json">
      {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":" db.adminCommand( {\n    setParameter: 1,\n    \"clusterIpSourceAllowlist\": null\n} );","programmingLanguage":"JavaScript"}
     </script>
     <div class="css-16lmvu9">
      <div class="leafygreen-ui-196mwvg">
       <div class="leafygreen-ui-yzcs8i">
        <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"> db.<span class="lg-highlight-title lg-highlight-function">adminCommand</span>( {</td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-attr">setParameter</span>: <span class="lg-highlight-number">1</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-string">"clusterIpSourceAllowlist"</span>: <span class="lg-highlight-literal">null</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">} );</td></tr></tbody></table></code></pre>
        <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
         <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
          <div class="leafygreen-ui-xhlipt">
           <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
            <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
            </path>
           </svg>
          </div>
         </button>
        </div>
       </div>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      <code class="leafygreen-ui-1l06pbn">
       security.clusterIpSourceAllowlist
      </code>
      has no effect on a
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
      started without
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/authentication/#std-label-authentication">
       authentication.
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <code class="leafygreen-ui-1l06pbn">
       security.clusterIpSourceAllowlist
      </code>
      requires specifying each
IPv4/6 address or Classless Inter-Domain Routing
(
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://tools.ietf.org/html/rfc4632" rel="noopener noreferrer">
       <span>
        CIDR
       </span>
       <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
        <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
        </path>
        <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
        </path>
       </svg>
      </a>
      ) range as a YAML list:
     </p>
     <script class="structured_data" type="application/ld+json">
      {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"security:\n  clusterIpSourceAllowlist:\n    - 192.0.2.0/24\n    - 127.0.0.1\n    - ::1","programmingLanguage":"YAML"}
     </script>
     <div class="css-16lmvu9">
      <div class="leafygreen-ui-196mwvg">
       <div class="leafygreen-ui-yzcs8i">
        <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">security:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">  <span class="lg-highlight-attr">clusterIpSourceAllowlist:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-bullet">-</span> <span class="lg-highlight-number">192.0</span><span class="lg-highlight-number">.2</span><span class="lg-highlight-number">.0</span><span class="lg-highlight-string">/24</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-bullet">-</span> <span class="lg-highlight-number">127.0</span><span class="lg-highlight-number">.0</span><span class="lg-highlight-number">.1</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-bullet">-</span> <span class="lg-highlight-string">::1</span></td></tr></tbody></table></code></pre>
        <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
         <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
          <div class="leafygreen-ui-xhlipt">
           <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
            <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
            </path>
           </svg>
          </div>
         </button>
        </div>
       </div>
      </div>
     </div>
     <div class="leafygreen-ui-85da11" role="note">
      <h2 class="leafygreen-ui-1ac4g5h">
       Important
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Ensure
        <code class="leafygreen-ui-1l06pbn">
         security.clusterIpSourceAllowlist
        </code>
        includes the
IP address
        <em>
         or
        </em>
        CIDR ranges that include the IP address of each
replica set member or
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
        in the deployment to
ensure healthy communication between cluster components.
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      security.clusterIpSourceWhitelist
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.clusterIpSourceWhitelist" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.clusterIpSourceWhitelist">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : list
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Deprecated in version 5.0:
      </em>
      Use
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.clusterIpSourceAllowlist" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.clusterIpSourceAllowlist
        </code>
       </span>
      </a>
      instead.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      A list of IP addresses/CIDR (
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://tools.ietf.org/html/rfc4632" rel="noopener noreferrer">
       <span>
        Classless Inter-Domain Routing
       </span>
       <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
        <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
        </path>
        <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
        </path>
       </svg>
      </a>
      ) ranges against which the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      validates authentication requests from other members of
the replica set and, if part of a sharded cluster, the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      instances. The
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      verifies that the originating IP is
either explicitly in the list or belongs to a CIDR range in the list. If the
IP address is not present, the server does not authenticate the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
       .
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.clusterIpSourceWhitelist" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.clusterIpSourceWhitelist
        </code>
       </span>
      </a>
      has no effect on a
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      started without
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/authentication/#std-label-authentication">
       authentication.
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.clusterIpSourceWhitelist" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         security.clusterIpSourceWhitelist
        </code>
       </span>
      </a>
      requires specifying each IPv4/6 address or Classless Inter-Domain
Routing (
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://tools.ietf.org/html/rfc4632" rel="noopener noreferrer">
       <span>
        CIDR
       </span>
       <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
        <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
        </path>
        <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
        </path>
       </svg>
      </a>
      ) range as a YAML list:
     </p>
     <script class="structured_data" type="application/ld+json">
      {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"security:\n  clusterIpSourceWhitelist:\n    - 192.0.2.0/24\n    - 127.0.0.1\n    - ::1","programmingLanguage":"YAML"}
     </script>
     <div class="css-16lmvu9">
      <div class="leafygreen-ui-196mwvg">
       <div class="leafygreen-ui-yzcs8i">
        <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">security:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">  <span class="lg-highlight-attr">clusterIpSourceWhitelist:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-bullet">-</span> <span class="lg-highlight-number">192.0</span><span class="lg-highlight-number">.2</span><span class="lg-highlight-number">.0</span><span class="lg-highlight-string">/24</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-bullet">-</span> <span class="lg-highlight-number">127.0</span><span class="lg-highlight-number">.0</span><span class="lg-highlight-number">.1</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-bullet">-</span> <span class="lg-highlight-string">::1</span></td></tr></tbody></table></code></pre>
        <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
         <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
          <div class="leafygreen-ui-xhlipt">
           <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
            <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
            </path>
           </svg>
          </div>
         </button>
        </div>
       </div>
      </div>
     </div>
     <div class="leafygreen-ui-85da11" role="note">
      <h2 class="leafygreen-ui-1ac4g5h">
       Important
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Ensure
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.clusterIpSourceWhitelist" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           security.clusterIpSourceWhitelist
          </code>
         </span>
        </a>
        includes the IP address
        <em>
         or
        </em>
        CIDR ranges that include the
IP address of each replica set member or
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
        </a>
        in the
deployment to ensure healthy communication between cluster components.
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-encryption-key-management-conf-options">
   </span>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     Key Management Configuration Options
     <a class="headerlink leafygreen-ui-1kepx47" href="#key-management-configuration-options" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="key-management-configuration-options">
      </div>
     </a>
    </h4>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"security:\n   enableEncryption: &lt;boolean&gt;\n   encryptionCipherMode: &lt;string&gt;\n   encryptionKeyFile: &lt;string&gt;\n   kmip:\n      keyIdentifier: &lt;string&gt;\n      rotateMasterKey: &lt;boolean&gt;\n      serverName: &lt;string&gt;\n      port: &lt;string&gt;\n      clientCertificateFile: &lt;string&gt;\n      clientCertificatePassword: &lt;string&gt;\n      clientCertificateSelector: &lt;string&gt;\n      serverCAFile: &lt;string&gt;\n      connectRetries: &lt;int&gt;\n      connectTimeoutMS: &lt;int&gt;\n      activateKeys: &lt;boolean&gt;\n      keyStatePollingSeconds: &lt;int&gt;","programmingLanguage":"YAML"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">security:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">enableEncryption:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">encryptionCipherMode:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">encryptionKeyFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">kmip:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">keyIdentifier:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">rotateMasterKey:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">serverName:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">port:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clientCertificateFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clientCertificatePassword:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">clientCertificateSelector:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">serverCAFile:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">connectRetries:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">connectTimeoutMS:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">activateKeys:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">keyStatePollingSeconds:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.enableEncryption
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.enableEncryption" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.enableEncryption">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : false
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Enables encryption for the WiredTiger storage engine. You must set
to
       <code class="leafygreen-ui-1l06pbn">
        true
       </code>
       to pass in encryption keys and configurations.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.encryptionCipherMode
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.encryptionCipherMode" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.encryptionCipherMode">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       :
       <code class="leafygreen-ui-1l06pbn">
        AES256-CBC
       </code>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The cipher mode to use for encryption at rest:
      </p>
      <div class="leafygreen-ui-skkc39" tabindex="0">
       <table class="leafygreen-ui-hr8lsv">
        <colgroup>
         <col style="width: 35%;"/>
         <col style="width: 65%;"/>
        </colgroup>
        <thead class="leafygreen-ui-a9ho40">
         <tr data-testid="leafygreen-ui-header-row">
          <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Mode
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Description
            </div>
           </div>
          </th>
         </tr>
        </thead>
        <tbody>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              AES256-CBC
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             256-bit Advanced Encryption Standard in Cipher Block Chaining Mode
            </div>
           </div>
          </td>
         </tr>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              AES256-GCM
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <p class="leafygreen-ui-1kp3ins">
              256-bit Advanced Encryption Standard in Galois/Counter Mode
             </p>
             <p class="leafygreen-ui-1kp3ins">
              Available only on Linux.
             </p>
             <p class="leafygreen-ui-1kp3ins">
              MongoDB Enterprise on Windows no longer supports
              <code class="leafygreen-ui-1l06pbn">
               AES256-GCM
              </code>
              as a
block cipher for encryption at rest. This usage is only supported on Linux.
             </p>
            </div>
           </div>
          </td>
         </tr>
        </tbody>
       </table>
      </div>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.encryptionKeyFile
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.encryptionKeyFile" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.encryptionKeyFile">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The path to the local keyfile when managing keys through a process
       <em>
        other
than
       </em>
       KMIP. Only set when managing keys through a process other than KMIP.
If data is already encrypted using KMIP, MongoDB throws an error.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Requires
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.enableEncryption" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.enableEncryption
         </code>
        </span>
       </a>
       to be
       <code class="leafygreen-ui-1l06pbn">
        true
       </code>
       .
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.keyIdentifier
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.keyIdentifier" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.keyIdentifier">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Unique KMIP identifier for an existing key within the KMIP server.
Include to use the key associated with the identifier as the system
key. You can only use the setting the first time you enable
encryption for the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       instance. Requires
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.enableEncryption" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.enableEncryption
         </code>
        </span>
       </a>
       to be true.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If unspecified, MongoDB requests that the KMIP server create a
new key to utilize as the system key.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If the KMIP server cannot locate a key with the specified identifier
or the data is already encrypted with a key, MongoDB throws an error.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.rotateMasterKey
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.rotateMasterKey" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.rotateMasterKey">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : false
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If true, rotate the master key and re-encrypt the internal
keystore.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
      <div class="leafygreen-ui-13vw3ie" role="note">
       <h2 class="leafygreen-ui-1fn4p2b">
        Tip
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         See also:
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/rotate-encryption-key/#std-label-kmip-master-key-rotation">
          KMIP Master Key Rotation
         </a>
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.serverName
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.serverName" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.serverName">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Hostname or IP address of the KMIP server to connect to. Requires
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.enableEncryption" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.enableEncryption
         </code>
        </span>
       </a>
       to be true.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       You can specify multiple KMIP servers as a comma-separated list, for example
       <code class="leafygreen-ui-1l06pbn">
        server1.example.com,server2.example.com
       </code>
       . On startup, the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       attempts to establish a connection to each
server in the order listed, and selects the first server to
which it can successfully establish a connection. KMIP server
selection occurs only at startup.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       verifies the connection to the KMIP server on startup.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The server name specified in
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#std-option-mongod.--kmipServerName">
        <code class="leafygreen-ui-1l06pbn">
         --kmipServerName
        </code>
       </a>
       must match either the Subject Alternative
Name
       <code class="leafygreen-ui-1l06pbn">
        SAN
       </code>
       or the Common Name
       <code class="leafygreen-ui-1l06pbn">
        CN
       </code>
       on the certificate presented by
the KMIP server.
       <code class="leafygreen-ui-1l06pbn">
        SAN
       </code>
       can be a system name or an IP address.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <code class="leafygreen-ui-1l06pbn">
        SAN
       </code>
       is present,
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       does not try to match against
       <code class="leafygreen-ui-1l06pbn">
        CN
       </code>
       .
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If the hostname or IP address of the KMIP server does does not match
either
       <code class="leafygreen-ui-1l06pbn">
        SAN
       </code>
       or
       <code class="leafygreen-ui-1l06pbn">
        CN
       </code>
       ,
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       does not start.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Starting in MongoDB 4.2, when performing comparison of SAN, MongoDB
supports comparison of DNS names or IP addresses. In previous versions,
MongoDB only supports comparisons of DNS names.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.port
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.port" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.port">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 5696
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Port number to use to communicate with the KMIP server. Requires
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.serverName" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.kmip.serverName
         </code>
        </span>
       </a>
       . Requires
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.enableEncryption" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.enableEncryption
         </code>
        </span>
       </a>
       to be true.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If specifying multiple KMIP servers with
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.serverName" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.kmip.serverName
         </code>
        </span>
       </a>
       , the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       uses the port specified with
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.port" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.kmip.port
         </code>
        </span>
       </a>
       for all
provided KMIP servers.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.clientCertificateFile
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.clientCertificateFile" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.clientCertificateFile">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Path to the
       <code class="leafygreen-ui-1l06pbn">
        .pem
       </code>
       file used to authenticate MongoDB to the KMIP
server. The specified
       <code class="leafygreen-ui-1l06pbn">
        .pem
       </code>
       file must contain both the TLS/SSL
certificate and key.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       To use this setting, you must also specify the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.serverName" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.kmip.serverName
         </code>
        </span>
       </a>
       setting.
      </p>
      <div class="leafygreen-ui-85da11" role="note">
       <h2 class="leafygreen-ui-1ac4g5h">
        Important
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Enabling encryption using a KMIP server on Windows fails when using
         <code class="leafygreen-ui-1l06pbn">
          security.kmip.clientCertificateFile
         </code>
         and the KMIP server enforces TLS 1.2.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         To enable encryption at rest with KMIP on Windows, you must:
        </p>
        <ul class="leafygreen-ui-rioki0">
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           Import the client certificate into the Windows Certificate Store.
          </p>
         </li>
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           Use the
           <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.clientCertificateSelector" target="_self">
            <span>
             <code class="leafygreen-ui-1l06pbn">
              security.kmip.clientCertificateSelector
             </code>
            </span>
           </a>
           option.
          </p>
         </li>
        </ul>
       </div>
      </div>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.clientCertificatePassword
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.clientCertificatePassword" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.clientCertificatePassword">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The password to decrypt the client certificate (i.e.
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.clientCertificateFile" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.kmip.clientCertificateFile
         </code>
        </span>
       </a>
       ), used to
authenticate MongoDB to the KMIP server. Use the option only if the
certificate is encrypted.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.clientCertificateSelector
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.clientCertificateSelector" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.clientCertificateSelector">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <div>
       <p>
        <em>
         New in version 5.0
        </em>
        : Available on Windows and macOS as an alternative to
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/configuration-options/#mongodb-setting-security.kmip.clientCertificateFile">
         <code class="leafygreen-ui-1l06pbn">
          security.kmip.clientCertificateFile
         </code>
         .
        </a>
       </p>
       <p class="leafygreen-ui-1kp3ins">
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.clientCertificateFile" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           security.kmip.clientCertificateFile
          </code>
         </span>
        </a>
        and
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.clientCertificateSelector" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           security.kmip.clientCertificateSelector
          </code>
         </span>
        </a>
        options are mutually exclusive. You can only
specify one.
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       Specifies a certificate property in order to select a matching
certificate from the operating system's certificate store to
authenticate MongoDB to the KMIP server.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.clientCertificateSelector" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.kmip.clientCertificateSelector
         </code>
        </span>
       </a>
       accepts an argument of the format
       <code class="leafygreen-ui-1l06pbn">
        &lt;property&gt;=&lt;value&gt;
       </code>
       where the property can be one of the following:
      </p>
      <div class="leafygreen-ui-skkc39" tabindex="0">
       <table class="leafygreen-ui-hr8lsv">
        <colgroup>
         <col style="width: 20%;"/>
         <col style="width: 20%;"/>
         <col style="width: 60%;"/>
        </colgroup>
        <thead class="leafygreen-ui-a9ho40">
         <tr data-testid="leafygreen-ui-header-row">
          <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Property
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Value type
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Description
            </div>
           </div>
          </th>
         </tr>
        </thead>
        <tbody>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              subject
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             ASCII string
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Subject name or common name on certificate
            </div>
           </div>
          </td>
         </tr>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              thumbprint
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             hex string
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <p class="leafygreen-ui-1kp3ins">
              A sequence of bytes, expressed as hexadecimal, used to
identify a public key by its SHA-1 digest.
             </p>
             <p class="leafygreen-ui-1kp3ins">
              The
              <code class="leafygreen-ui-1l06pbn">
               thumbprint
              </code>
              is sometimes referred to as a
              <code class="leafygreen-ui-1l06pbn">
               fingerprint
              </code>
              .
             </p>
            </div>
           </div>
          </td>
         </tr>
        </tbody>
       </table>
      </div>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.serverCAFile
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.serverCAFile" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.serverCAFile">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Path to CA File. Used for validating secure client connection to
KMIP server.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Starting in 4.0, on macOS or Windows, you can use a certificate
from the operating system's secure store instead of a PEM key
file. See
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.clientCertificateSelector" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            security.kmip.clientCertificateSelector
           </code>
          </span>
         </a>
         . When using the secure store, you do not
need to, but can, also specify the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.serverCAFile" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            security.kmip.serverCAFile
           </code>
           .
          </span>
         </a>
        </p>
       </div>
      </div>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.connectRetries
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.connectRetries" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.connectRetries">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : int
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       How many times to retry the initial connection to the KMIP server.
Use together with
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.connectTimeoutMS" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          connectTimeoutMS
         </code>
        </span>
       </a>
       to
control how long the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       waits for a response
between each retry.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.connectTimeoutMS
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.connectTimeoutMS" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.connectTimeoutMS">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : int
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 5000
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Timeout in milliseconds to wait for a response from the KMIP server.
If the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.connectRetries" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          connectRetries
         </code>
        </span>
       </a>
       setting is specified,
the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       waits up to the value specified with
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.connectTimeoutMS" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          connectTimeoutMS
         </code>
        </span>
       </a>
       for each retry.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Value must be
       <code class="leafygreen-ui-1l06pbn">
        1000
       </code>
       or greater.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.activateKeys
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.activateKeys" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.activateKeys">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : true
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       Activates all newly created KMIP keys upon creation and then periodically
checks those keys are in an active state.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       When
       <code class="leafygreen-ui-1l06pbn">
        security.kmip.activateKeys
       </code>
       is
       <code class="leafygreen-ui-1l06pbn">
        true
       </code>
       and you have existing keys
on a KMIP server, the key must be activated first or the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       node fails to start.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If the key being used by the mongod transitions into a non-active state,
the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       node shuts down unless
       <code class="leafygreen-ui-1l06pbn">
        kmipActivateKeys
       </code>
       is
false. To ensure you have an active key, rotate the KMIP master key by
using
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.kmip.rotateMasterKey" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.kmip.rotateMasterKey
         </code>
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.keyStatePollingSeconds
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.keyStatePollingSeconds" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.keyStatePollingSeconds">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : int
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 900 seconds
      </p>
      <div>
       <p>
        <em>
         New in version 5.3
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       Frequency in seconds at which mongod polls the KMIP server for active keys.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       To disable disable polling, set the value to
       <code class="leafygreen-ui-1l06pbn">
        -1
       </code>
       .
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.kmip.useLegacyProtocol
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.kmip.useLegacyProtocol" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.kmip.useLegacyProtocol">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : false
      </p>
      <div>
       <p>
        <em>
         New in version 7.0
        </em>
        : (and 6.0.6)
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       When
       <code class="leafygreen-ui-1l06pbn">
        true
       </code>
       ,
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       uses KMIP protocol version 1.0 or 1.1 instead
of the default version. The default KMIP protocol is version 1.2.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       To use
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-encryption-at-rest/#std-label-security-encryption-at-rest-audit-log">
        audit log encryption
       </a>
       with KMIP version 1.0 or 1.1, you must specify
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.auditEncryptKeyWithKMIPGet">
        <code class="leafygreen-ui-1l06pbn">
         auditEncryptKeyWithKMIPGet
        </code>
       </a>
       at startup.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       To use KMIP protocol version 1.0 or 1.1, substitute your local values
and add an entry like this to your
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       configuration file:
      </p>
      <script class="structured_data" type="application/ld+json">
       {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"security:\n  enableEncryption: true\n  kmip:\n    serverName: \"mdbhost.somecompany.com\"\n    serverCAFile: \"security/libs/trusted-ca.pem\"\n    clientCertificateFile: \"security/libs/trusted-client.pem\"\n    useLegacyProtocol: true","programmingLanguage":"Bash"}
      </script>
      <div class="css-16lmvu9">
       <div class="leafygreen-ui-196mwvg">
        <div class="leafygreen-ui-1b1bvay">
         <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light bash leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">security:</td></tr><tr class=""><td class="leafygreen-ui-7razhx">  enableEncryption: <span class="lg-highlight-literal">true</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">  kmip:</td></tr><tr class=""><td class="leafygreen-ui-7razhx">    serverName: <span class="lg-highlight-string">"mdbhost.somecompany.com"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">    serverCAFile: <span class="lg-highlight-string">"security/libs/trusted-ca.pem"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">    clientCertificateFile: <span class="lg-highlight-string">"security/libs/trusted-client.pem"</span></td></tr><tr class="leafygreen-ui-1wr1lm6"><td class="leafygreen-ui-7razhx">    useLegacyProtocol: <span class="lg-highlight-literal">true</span></td></tr></tbody></table></code></pre>
         <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
          <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
           <div class="leafygreen-ui-xhlipt">
            <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
             <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
             </path>
            </svg>
           </div>
          </button>
         </div>
        </div>
       </div>
      </div>
     </dd>
    </dl>
    <span class="leafygreen-ui-1qnjd6d" id="std-label-security.sasl.options">
    </span>
   </section>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     <code class="leafygreen-ui-1l06pbn">
      security.sasl
     </code>
     Options
     <a class="headerlink leafygreen-ui-1kepx47" href="#security.sasl-options" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="security.sasl-options">
      </div>
     </a>
    </h4>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"security:\n   sasl:\n      hostName: &lt;string&gt;\n      serviceName: &lt;string&gt;\n      saslauthdSocketPath: &lt;string&gt;","programmingLanguage":"YAML"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">security:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">sasl:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">hostName:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">serviceName:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">saslauthdSocketPath:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.sasl.hostName
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.sasl.hostName" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.sasl.hostName">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       A fully qualified server domain name for the purpose of configuring SASL
and Kerberos authentication. The SASL hostname overrides the hostname
only for the configuration of SASL and Kerberos.
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.sasl.serviceName
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.sasl.serviceName" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.sasl.serviceName">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Registered name of the service using SASL. This option allows you to
override the default
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/control-access-to-mongodb-with-kerberos-authentication/">
        Kerberos
       </a>
       service name component of the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/control-access-to-mongodb-with-kerberos-authentication/">
        Kerberos
       </a>
       principal name, on a per-instance basis. If unspecified, the default
value is
       <code class="leafygreen-ui-1l06pbn">
        mongodb
       </code>
       .
      </p>
      <p class="leafygreen-ui-1kp3ins">
       MongoDB permits setting this option only at startup. The
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setParameter/#mongodb-dbcommand-dbcmd.setParameter">
        <code class="leafygreen-ui-1l06pbn">
         setParameter
        </code>
       </a>
       can not change this setting.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       This option is available only in MongoDB Enterprise.
      </p>
      <div class="leafygreen-ui-85da11" role="note">
       <h2 class="leafygreen-ui-1ac4g5h">
        Important
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Ensure that your driver supports alternate service names.
For
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#mongodb-binary-bin.mongosh" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            mongosh
           </code>
          </span>
         </a>
         and other MongoDB tools to
connect to the new
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.sasl.serviceName" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            serviceName
           </code>
          </span>
         </a>
         , see the
         <code class="leafygreen-ui-1l06pbn">
          gssapiServiceName
         </code>
         option.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.sasl.saslauthdSocketPath
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.sasl.saslauthdSocketPath" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.sasl.saslauthdSocketPath">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The path to the UNIX domain socket file for
       <code class="leafygreen-ui-1l06pbn">
        saslauthd
       </code>
       .
      </p>
     </dd>
    </dl>
    <span class="leafygreen-ui-1qnjd6d" id="std-label-security.ldap.options">
    </span>
   </section>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     <code class="leafygreen-ui-1l06pbn">
      security.ldap
     </code>
     Options
     <a class="headerlink leafygreen-ui-1kepx47" href="#security.ldap-options" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="security.ldap-options">
      </div>
     </a>
    </h4>
    <div class="leafygreen-ui-15mdk4" role="note">
     <h2 class="leafygreen-ui-6n7b7d">
      Note
     </h2>
     <div class="leafygreen-ui-9mycqc">
      <p class="leafygreen-ui-1kp3ins">
       Starting in MongoDB 8.0, LDAP authentication and authorization is
deprecated. LDAP is available and will continue to operate without
changes throughout the lifetime of MongoDB 8. LDAP will be removed in a
future major release.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For details, see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/LDAP-deprecation/#std-label-ldap-deprecation">
        LDAP Deprecation.
       </a>
      </p>
     </div>
    </div>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"security:\n   ldap:\n      servers: &lt;string&gt;\n      bind:\n         method: &lt;string&gt;\n         saslMechanisms: &lt;string&gt;\n         queryUser: &lt;string&gt;\n         queryPassword: &lt;string&gt;\n         useOSDefaults: &lt;boolean&gt;\n      transportSecurity: &lt;string&gt;\n      timeoutMS: &lt;int&gt;\n      retryCount: &lt;int&gt;\n      userToDNMapping: &lt;string&gt;\n      authz:\n         queryTemplate: &lt;string&gt;\n      validateLDAPServerConfig: &lt;boolean&gt;","programmingLanguage":"YAML"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">security:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">ldap:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">servers:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">bind:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">method:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">saslMechanisms:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">queryUser:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">queryPassword:</span> <span class="lg-highlight-string">&lt;string</span> <span class="lg-highlight-string">|</span> <span class="lg-highlight-string">array&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">useOSDefaults:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">transportSecurity:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">timeoutMS:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">retryCount:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">userToDNMapping:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">authz:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">queryTemplate:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">validateLDAPServerConfig:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.servers
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.servers" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.servers">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available in MongoDB Enterprise only.
       </em>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The LDAP server against which the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       authenticates users or
determines what actions a user is authorized to perform on a given
database. If the LDAP server specified has any replicated instances,
you may specify the host and port of each replicated server in a
comma-delimited list.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If your LDAP infrastructure partitions the LDAP directory over multiple LDAP
servers, specify
       <em>
        one
       </em>
       LDAP server or any of its replicated instances to
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.servers" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.ldap.servers
         </code>
        </span>
       </a>
       . MongoDB supports following LDAP referrals as defined in
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.rfc-editor.org/rfc/rfc4511.txt" rel="noopener noreferrer">
        <span>
         RFC 4511
4.1.10
        </span>
        <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
         <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
         </path>
         <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
         </path>
        </svg>
       </a>
       . Do not use
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.servers" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.ldap.servers
         </code>
        </span>
       </a>
       for listing every LDAP server in your infrastructure.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       You can prefix LDAP servers with
       <code class="leafygreen-ui-1l06pbn">
        srv:
       </code>
       and
       <code class="leafygreen-ui-1l06pbn">
        srv_raw:
       </code>
       .
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If your connection string specifies
       <code class="leafygreen-ui-1l06pbn">
        "srv:&lt;DNS_NAME&gt;"
       </code>
       ,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       verifies that
       <code class="leafygreen-ui-1l06pbn">
        "_ldap._tcp.gc._msdcs.&lt;DNS_NAME&gt;"
       </code>
       exists for SRV to
support Active Directory. If not found,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       verifies that
       <code class="leafygreen-ui-1l06pbn">
        "_ldap._tcp.&lt;DNS_NAME&gt;"
       </code>
       exists for SRV. If an SRV record cannot be
found,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       warns you to use
       <code class="leafygreen-ui-1l06pbn">
        "srv_raw:&lt;DNS_NAME&gt;"
       </code>
       instead.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If your connection string specifies
       <code class="leafygreen-ui-1l06pbn">
        "srv_raw:&lt;DNS_NAME&gt;"
       </code>
       ,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       performs an SRV record lookup for
       <code class="leafygreen-ui-1l06pbn">
        "&lt;DNS NAME&gt;"
       </code>
       .
      </p>
      <p class="leafygreen-ui-1kp3ins">
       This setting can be configured on a running
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       using
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setParameter/#mongodb-dbcommand-dbcmd.setParameter">
        <code class="leafygreen-ui-1l06pbn">
         setParameter
        </code>
        .
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If unset,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       cannot use
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-ldap/">
        LDAP authentication or authorization.
       </a>
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.bind.queryUser
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.bind.queryUser" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.bind.queryUser">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available in MongoDB Enterprise only.
       </em>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The identity with which
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       binds as, when connecting to or
performing queries on an LDAP server.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Only required if any of the following are true:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         Using
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-ldap-external/#std-label-security-ldap-external">
          LDAP authorization.
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         Using an LDAP query for
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.userToDNMapping" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            security.ldap.userToDNMapping
           </code>
           .
          </span>
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         The LDAP server disallows anonymous binds
        </p>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       You must use
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryUser" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          queryUser
         </code>
        </span>
       </a>
       with
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryPassword" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          queryPassword
         </code>
         .
        </span>
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If unset,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       does not
attempt to bind to the LDAP server.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       This setting can be configured on a running
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       using
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setParameter/#mongodb-dbcommand-dbcmd.setParameter">
        <code class="leafygreen-ui-1l06pbn">
         setParameter
        </code>
        .
       </a>
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Windows MongoDB deployments can use
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.useOSDefaults" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            useOSDefaults
           </code>
          </span>
         </a>
         instead of
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryUser" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            queryUser
           </code>
          </span>
         </a>
         and
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryPassword" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            queryPassword
           </code>
          </span>
         </a>
         . You cannot specify
both
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryUser" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            queryUser
           </code>
          </span>
         </a>
         and
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.useOSDefaults" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            useOSDefaults
           </code>
          </span>
         </a>
         at the same time.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.bind.queryPassword
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.bind.queryPassword" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.bind.queryPassword">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string or array
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available in MongoDB Enterprise only.
       </em>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The password used to bind to an LDAP server when using
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryUser" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          queryUser
         </code>
        </span>
       </a>
       . You must use
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryPassword" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          queryPassword
         </code>
        </span>
       </a>
       with
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryUser" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          queryUser
         </code>
         .
        </span>
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If not set,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       does not attempt to
bind to the LDAP server.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       You can configure this setting on a running
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       using
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setParameter/#mongodb-dbcommand-dbcmd.setParameter">
        <code class="leafygreen-ui-1l06pbn">
         setParameter
        </code>
        .
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The
       <code class="leafygreen-ui-1l06pbn">
        ldapQueryPassword
       </code>
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setParameter/#mongodb-dbcommand-dbcmd.setParameter">
        <code class="leafygreen-ui-1l06pbn">
         setParameter
        </code>
       </a>
       command accepts either a
string or an array of strings. If
       <code class="leafygreen-ui-1l06pbn">
        ldapQueryPassword
       </code>
       is set to an array,
MongoDB tries each password in order until one succeeds. Use a password array
to roll over the LDAP account password without downtime.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Windows MongoDB deployments can use
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.useOSDefaults" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            useOSDefaults
           </code>
          </span>
         </a>
         instead of
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryUser" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            queryUser
           </code>
          </span>
         </a>
         and
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryPassword" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            queryPassword
           </code>
          </span>
         </a>
         . You cannot specify both
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryPassword" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            queryPassword
           </code>
          </span>
         </a>
         and
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.useOSDefaults" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            useOSDefaults
           </code>
          </span>
         </a>
         at the same time.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.bind.useOSDefaults
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.bind.useOSDefaults" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.bind.useOSDefaults">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : false
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Available in MongoDB Enterprise for the Windows platform only.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Allows
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       to authenticate, or bind, using your Windows login
credentials when connecting to the LDAP server.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Only required if:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         Using
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-ldap-external/#std-label-security-ldap-external">
          LDAP authorization.
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         Using an LDAP query for
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.userToDNMapping" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            username transformation
           </code>
           .
          </span>
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         The LDAP server disallows anonymous binds
        </p>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       Use
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.useOSDefaults" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          useOSDefaults
         </code>
        </span>
       </a>
       to replace
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryUser" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          queryUser
         </code>
        </span>
       </a>
       and
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryPassword" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          queryPassword
         </code>
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.bind.method
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.bind.method" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.bind.method">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : simple
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available in MongoDB Enterprise only.
       </em>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The method
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       uses to authenticate to an LDAP server.
Use with
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryUser" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          queryUser
         </code>
        </span>
       </a>
       and
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.queryPassword" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          queryPassword
         </code>
        </span>
       </a>
       to
connect to the LDAP server.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.method" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          method
         </code>
        </span>
       </a>
       supports the following values:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          simple
         </code>
         -
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
          <code class="leafygreen-ui-1l06pbn">
           mongod
          </code>
         </a>
         or
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
          <code class="leafygreen-ui-1l06pbn">
           mongos
          </code>
         </a>
         uses simple authentication.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          sasl
         </code>
         -
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
          <code class="leafygreen-ui-1l06pbn">
           mongod
          </code>
         </a>
         or
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
          <code class="leafygreen-ui-1l06pbn">
           mongos
          </code>
         </a>
         uses SASL protocol for authentication
        </p>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       If you specify
       <code class="leafygreen-ui-1l06pbn">
        sasl
       </code>
       , you can configure the available SASL mechanisms
using
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.saslMechanisms" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.ldap.bind.saslMechanisms
         </code>
        </span>
       </a>
       .
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       defaults to
using
       <code class="leafygreen-ui-1l06pbn">
        DIGEST-MD5
       </code>
       mechanism.
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.bind.saslMechanisms
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.bind.saslMechanisms" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.bind.saslMechanisms">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : DIGEST-MD5
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available in MongoDB Enterprise only.
       </em>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       A comma-separated list of SASL mechanisms
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       can
use when authenticating to the LDAP server. The
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       and the
LDAP server must agree on at least one mechanism. The
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       dynamically loads any SASL mechanism libraries installed on the host
machine at runtime.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Install and configure the appropriate libraries for the selected
SASL mechanism(s) on both the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       host and the remote
LDAP server host. Your operating system may include certain SASL
libraries by default. Defer to the documentation associated with each
SASL mechanism for guidance on installation and configuration.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If using the
       <code class="leafygreen-ui-1l06pbn">
        GSSAPI
       </code>
       SASL mechanism for use with
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/kerberos/#std-label-security-kerberos">
        Kerberos Authentication on Self-Managed Deployments
       </a>
       , verify the following for the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       host machine:
      </p>
      <dl>
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         Linux
        </code>
       </dt>
       <dd class="css-1ufxuu7">
        <ul class="leafygreen-ui-rioki0">
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           The
           <code class="leafygreen-ui-1l06pbn">
            KRB5_CLIENT_KTNAME
           </code>
           environment
variable resolves to the name of the client
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/kerberos/#std-label-keytab-files">
            Linux Keytab Files
           </a>
           for the host machine. For more on Kerberos environment
variables, please defer to the
           <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://web.mit.edu/kerberos/krb5-1.13/doc/admin/env_variables.html" rel="noopener noreferrer">
            <span>
             Kerberos documentation.
            </span>
            <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
             <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
             </path>
             <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
             </path>
            </svg>
           </a>
          </p>
         </li>
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           The client keytab includes a
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/kerberos/#std-label-kerberos-user-principal">
            User Principal
           </a>
           for the
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
            <code class="leafygreen-ui-1l06pbn">
             mongod
            </code>
           </a>
           or
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
            <code class="leafygreen-ui-1l06pbn">
             mongos
            </code>
           </a>
           to use when
connecting to the LDAP server and execute LDAP queries.
          </p>
         </li>
        </ul>
       </dd>
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         Windows
        </code>
       </dt>
       <dd class="css-1ufxuu7">
        If connecting to an Active Directory server, the Windows
Kerberos configuration automatically generates a
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa380510(v=vs.85).aspx" rel="noopener noreferrer">
         <span>
          Ticket-Granting-Ticket
         </span>
         <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
          <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
          </path>
          <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
          </path>
         </svg>
        </a>
        when the user logs onto the system. Set
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.useOSDefaults" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           useOSDefaults
          </code>
         </span>
        </a>
        to
        <code class="leafygreen-ui-1l06pbn">
         true
        </code>
        to allow
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        or
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
        </a>
        to use the generated credentials when
connecting to the Active Directory server and execute queries.
       </dd>
      </dl>
      <p class="leafygreen-ui-1kp3ins">
       Set
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.bind.method" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          method
         </code>
        </span>
       </a>
       to
       <code class="leafygreen-ui-1l06pbn">
        sasl
       </code>
       to use this option.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         For a complete list of SASL mechanisms see the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.iana.org/assignments/sasl-mechanisms/sasl-mechanisms.xhtml" rel="noopener noreferrer">
          <span>
           IANA listing
          </span>
          <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
           <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
           </path>
           <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
           </path>
          </svg>
         </a>
         .
Defer to the documentation for your LDAP or Active Directory
service for identifying the SASL mechanisms compatible with the
service.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         MongoDB is not a source of SASL mechanism libraries, nor
is the MongoDB documentation a definitive source for
installing or configuring any given SASL mechanism. For
documentation and support, defer to the SASL mechanism
library vendor or owner.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         For more information on SASL, defer to the following resources:
        </p>
        <ul class="leafygreen-ui-rioki0">
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           For Linux, please see the
           <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.cyrusimap.org/sasl/" rel="noopener noreferrer">
            <span>
             Cyrus SASL documentation.
            </span>
            <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
             <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
             </path>
             <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
             </path>
            </svg>
           </a>
          </p>
         </li>
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           For Windows, please see the
           <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://msdn.microsoft.com/en-us/library/cc223500.aspx" rel="noopener noreferrer">
            <span>
             Windows SASL documentation.
            </span>
            <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
             <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
             </path>
             <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
             </path>
            </svg>
           </a>
          </p>
         </li>
        </ul>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.transportSecurity
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.transportSecurity" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.transportSecurity">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : tls
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available in MongoDB Enterprise only.
       </em>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       By default,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       creates a TLS/SSL secured connection to the LDAP
server.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For Linux deployments, you must configure the appropriate TLS Options in
       <code class="leafygreen-ui-1l06pbn">
        /etc/openldap/ldap.conf
       </code>
       file. Your operating system's package manager
creates this file as part of the MongoDB Enterprise installation, through the
       <code class="leafygreen-ui-1l06pbn">
        libldap
       </code>
       dependency. See the documentation for
       <code class="leafygreen-ui-1l06pbn">
        TLS Options
       </code>
       in the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.openldap.org/software/man.cgi?query=ldap.conf&amp;manpath=OpenLDAP+2.4-Release" rel="noopener noreferrer">
        <span>
         ldap.conf OpenLDAP documentation
        </span>
        <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
         <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
         </path>
         <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
         </path>
        </svg>
       </a>
       for more complete instructions.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For Windows deployment, you must add the LDAP server CA certificates to the
Windows certificate management tool. The exact name and functionality of the
tool may vary depending on operating system version. Please see the
documentation for your version of Windows for more information on
certificate management.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Set
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.transportSecurity" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          transportSecurity
         </code>
        </span>
       </a>
       to
       <code class="leafygreen-ui-1l06pbn">
        none
       </code>
       to disable TLS/SSL between
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       and the LDAP
server.
      </p>
      <div class="leafygreen-ui-1sjx7ru" role="note">
       <h2 class="leafygreen-ui-29m78u">
        Warning
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Setting
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.transportSecurity" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            transportSecurity
           </code>
          </span>
         </a>
         to
         <code class="leafygreen-ui-1l06pbn">
          none
         </code>
         transmits plaintext information and possibly
credentials between
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
          <code class="leafygreen-ui-1l06pbn">
           mongod
          </code>
         </a>
         or
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
          <code class="leafygreen-ui-1l06pbn">
           mongos
          </code>
         </a>
         and the LDAP server.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.timeoutMS
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.timeoutMS" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.timeoutMS">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : int
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 10000
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available in MongoDB Enterprise only.
       </em>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The amount of time in milliseconds
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       should wait for an LDAP server
to respond to a request.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Increasing the value of
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.timeoutMS" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          timeoutMS
         </code>
        </span>
       </a>
       may prevent connection failure between the
MongoDB server and the LDAP server, if the source of the failure is a
connection timeout. Decreasing the value of
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.timeoutMS" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          timeoutMS
         </code>
        </span>
       </a>
       reduces the time
MongoDB waits for a response from the LDAP server.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       This setting can be configured on a running
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       using
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setParameter/#mongodb-dbcommand-dbcmd.setParameter">
        <code class="leafygreen-ui-1l06pbn">
         setParameter
        </code>
        .
       </a>
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.retryCount
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.retryCount" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.retryCount">
       </div>
      </a>
     </dt>
     <dd>
      <div>
       <p>
        <em>
         New in version 6.1
        </em>
        .
       </p>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : int
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 0
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available in MongoDB Enterprise only.
       </em>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Number of operation retries by the server LDAP manager after a
network error.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       This setting can be configured on a running
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       using
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setParameter/#mongodb-dbcommand-dbcmd.setParameter">
        <code class="leafygreen-ui-1l06pbn">
         setParameter
        </code>
        .
       </a>
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.userToDNMapping
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.userToDNMapping" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.userToDNMapping">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available in MongoDB Enterprise only.
       </em>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Maps the username provided to
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       for authentication to a LDAP
Distinguished Name (DN). You may need to use
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.userToDNMapping" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          userToDNMapping
         </code>
        </span>
       </a>
       to transform a
username into an LDAP DN in the following scenarios:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         Performing LDAP authentication with simple LDAP binding, where users
authenticate to MongoDB with usernames that are not full LDAP DNs.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         Using an
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#std-option-mongod.--ldapAuthzQueryTemplate">
          <code class="leafygreen-ui-1l06pbn">
           LDAP authorization query template
          </code>
         </a>
         that requires a DN.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         Transforming the usernames of clients authenticating to Mongo DB using
different authentication mechanisms (for example, x.509, kerberos) to a full LDAP
DN for authorization.
        </p>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.userToDNMapping" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          userToDNMapping
         </code>
        </span>
       </a>
       expects a quote-enclosed JSON-string representing an ordered array
of documents. Each document contains a regular expression
       <code class="leafygreen-ui-1l06pbn">
        match
       </code>
       and
either a
       <code class="leafygreen-ui-1l06pbn">
        substitution
       </code>
       or
       <code class="leafygreen-ui-1l06pbn">
        ldapQuery
       </code>
       template used for transforming the
incoming username.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Each document in the array has the following form:
      </p>
      <script class="structured_data" type="application/ld+json">
       {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{\n  match: \"&lt;regex&gt;\"\n  substitution: \"&lt;ldap&gt;\" | ldapQuery: \"&lt;ldap&gt;\"\n}","programmingLanguage":"JavaScript"}
      </script>
      <div class="css-16lmvu9">
       <div class="leafygreen-ui-196mwvg">
        <div class="leafygreen-ui-1b1bvay">
         <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">  <span class="lg-highlight-attr">match</span>: <span class="lg-highlight-string">"&lt;regex&gt;"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">  <span class="lg-highlight-attr">substitution</span>: <span class="lg-highlight-string">"&lt;LDAP DN&gt;"</span> | <span class="lg-highlight-attr">ldapQuery</span>: <span class="lg-highlight-string">"&lt;LDAP Query&gt;"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
         <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
          <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
           <div class="leafygreen-ui-xhlipt">
            <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
             <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
             </path>
            </svg>
           </div>
          </button>
         </div>
        </div>
       </div>
      </div>
      <div class="leafygreen-ui-skkc39" tabindex="0">
       <table class="leafygreen-ui-hr8lsv">
        <colgroup>
         <col style="width: 10%;"/>
         <col style="width: 70%;"/>
         <col style="width: 20%;"/>
        </colgroup>
        <thead class="leafygreen-ui-a9ho40">
         <tr data-testid="leafygreen-ui-header-row">
          <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Field
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Description
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Example
            </div>
           </div>
          </th>
         </tr>
        </thead>
        <tbody>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              match
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             An ECMAScript-formatted regular expression (regex) to match against a
provided username. Each parenthesis-enclosed section represents a
regex capture group used by
             <code class="leafygreen-ui-1l06pbn">
              substitution
             </code>
             or
             <code class="leafygreen-ui-1l06pbn">
              ldapQuery
             </code>
             .
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              "(.+)ENGINEERING"
             </code>
             <code class="leafygreen-ui-1l06pbn">
              "(.+)DBA"
             </code>
            </div>
           </div>
          </td>
         </tr>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              substitution
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <p class="leafygreen-ui-1kp3ins">
              An LDAP distinguished name (DN) formatting template that converts the
authentication name matched by the
              <code class="leafygreen-ui-1l06pbn">
               match
              </code>
              regex into a LDAP DN.
Each curly bracket-enclosed numeric value is replaced by the
corresponding
              <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.regular-expressions.info/refcapture.html" rel="noopener noreferrer">
               <span>
                regex capture group
               </span>
               <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
                <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
                </path>
                <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
                </path>
               </svg>
              </a>
              extracted
from the authentication username through the
              <code class="leafygreen-ui-1l06pbn">
               match
              </code>
              regex.
             </p>
             <p class="leafygreen-ui-1kp3ins">
              The result of the substitution must be an
              <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.ietf.org/rfc/rfc4514.txt" rel="noopener noreferrer">
               <span>
                RFC4514
               </span>
               <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
                <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
                </path>
                <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
                </path>
               </svg>
              </a>
              escaped string.
             </p>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              "cn={0},ou=engineering,
dc=example,dc=com"
             </code>
            </div>
           </div>
          </td>
         </tr>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              ldapQuery
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             A LDAP query formatting template that inserts the authentication
name matched by the
             <code class="leafygreen-ui-1l06pbn">
              match
             </code>
             regex into an LDAP query URI encoded
respecting RFC4515 and RFC4516. Each curly bracket-enclosed numeric
value is replaced by the corresponding
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.regular-expressions.info/refcapture.html" rel="noopener noreferrer">
              <span>
               regex capture group
              </span>
              <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
               <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
               </path>
               <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
               </path>
              </svg>
             </a>
             extracted
from the authentication username through the
             <code class="leafygreen-ui-1l06pbn">
              match
             </code>
             expression.
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
              <code class="leafygreen-ui-1l06pbn">
               mongod
              </code>
             </a>
             or
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
              <code class="leafygreen-ui-1l06pbn">
               mongos
              </code>
             </a>
             executes the query against the LDAP server to retrieve
the LDAP DN for the authenticated user.
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
              <code class="leafygreen-ui-1l06pbn">
               mongod
              </code>
             </a>
             or
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
              <code class="leafygreen-ui-1l06pbn">
               mongos
              </code>
             </a>
             requires
exactly one returned result for the transformation to be
successful, or
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
              <code class="leafygreen-ui-1l06pbn">
               mongod
              </code>
             </a>
             or
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
              <code class="leafygreen-ui-1l06pbn">
               mongos
              </code>
             </a>
             skips this transformation.
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              "ou=engineering,dc=example,
dc=com??one?(user={0})"
             </code>
            </div>
           </div>
          </td>
         </tr>
        </tbody>
       </table>
      </div>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         An explanation of
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.ietf.org/rfc/rfc4514.txt" rel="noopener noreferrer">
          <span>
           RFC4514
          </span>
          <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
           <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
           </path>
           <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
           </path>
          </svg>
         </a>
         ,
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://tools.ietf.org/html/rfc4515" rel="noopener noreferrer">
          <span>
           RFC4515
          </span>
          <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
           <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
           </path>
           <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
           </path>
          </svg>
         </a>
         ,
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://tools.ietf.org/html/rfc4516" rel="noopener noreferrer">
          <span>
           RFC4516
          </span>
          <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
           <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
           </path>
           <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
           </path>
          </svg>
         </a>
         , or LDAP queries is out
of scope for the MongoDB Documentation. Please review the RFC directly or
use your preferred LDAP resource.
        </p>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       For each document in the array, you must use either
       <code class="leafygreen-ui-1l06pbn">
        substitution
       </code>
       or
       <code class="leafygreen-ui-1l06pbn">
        ldapQuery
       </code>
       . You
       <em>
        cannot
       </em>
       specify both in the same document.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       When performing authentication or authorization,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       steps through
each document in the array in the given order, checking the authentication
username against the
       <code class="leafygreen-ui-1l06pbn">
        match
       </code>
       filter.  If a match is found,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       applies the transformation and uses the output for
authenticating the user.
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       does not check the remaining documents
in the array.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If the given document does not match the provided authentication
name,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       continues
through the list of documents to find additional matches. If no
matches are found in any document, or the transformation the document
describes fails,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       returns an error.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       also returns an error if one
of the transformations cannot be evaluated due to networking or
authentication failures to the LDAP server.
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       rejects the connection request and does not
check the remaining documents in the array.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Starting in MongoDB 5.0,
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.userToDNMapping" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          userToDNMapping
         </code>
        </span>
       </a>
       accepts an empty string
       <code class="leafygreen-ui-1l06pbn">
        ""
       </code>
       or empty array
       <code class="leafygreen-ui-1l06pbn">
        [ ]
       </code>
       in place of a
mapping document. If providing an empty string or empty array to
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.userToDNMapping" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          userToDNMapping
         </code>
        </span>
       </a>
       , MongoDB maps the
authenticated username as the LDAP DN. Previously, providing an
empty mapping document would cause mapping to fail.
      </p>
      <div class="leafygreen-ui-vg7qwp" role="note">
       <h2 class="leafygreen-ui-2xicti">
        Example
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         The following shows two transformation documents. The first
document matches against any string ending in
         <code class="leafygreen-ui-1l06pbn">
          @ENGINEERING
         </code>
         , placing
anything preceding the suffix into a regex capture group. The
second document matches against any string ending in
         <code class="leafygreen-ui-1l06pbn">
          @DBA
         </code>
         , placing
anything preceding the suffix into a regex capture group.
        </p>
        <div class="leafygreen-ui-85da11" role="note">
         <h2 class="leafygreen-ui-1ac4g5h">
          Important
         </h2>
         <h3 class="leafygreen-ui-144d5kf">
          <strong>
           You must pass the array to userToDNMapping as a string.
          </strong>
         </h3>
         <div class="leafygreen-ui-9mycqc">
         </div>
        </div>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"[\n   {\n      match: \"(.+)@ENGINEERING.EXAMPLE.COM\",\n      substitution: \"cn={0},ou=engineering,dc=example,dc=com\"\n   },\n   {\n      match: \"(.+)@DBA.EXAMPLE.COM\",\n      ldapQuery: \"ou=dba,dc=example,dc=com??one?(user={0})\"\n\n   }\n\n]\""}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-1b1bvay">
           <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light none leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">"[</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   {</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      match: "(.+)@ENGINEERING.EXAMPLE.COM",</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      substitution: "cn={0},ou=engineering,dc=example,dc=com"</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   },</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   {</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      match: "(.+)@DBA.EXAMPLE.COM",</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      ldapQuery: "ou=dba,dc=example,dc=com??one?(user={0})"</td></tr><tr class=""><td class="leafygreen-ui-7razhx"><div class="leafygreen-ui-ihxujy"></div></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }</td></tr><tr class=""><td class="leafygreen-ui-7razhx"><div class="leafygreen-ui-ihxujy"></div></td></tr><tr class=""><td class="leafygreen-ui-7razhx">]"</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
        <p class="leafygreen-ui-1kp3ins">
         A user with username
         <code class="leafygreen-ui-1l06pbn">
          alice@ENGINEERING.EXAMPLE.COM
         </code>
         matches the first
document. The regex capture group
         <code class="leafygreen-ui-1l06pbn">
          {0}
         </code>
         corresponds to the string
         <code class="leafygreen-ui-1l06pbn">
          alice
         </code>
         . The resulting output is the DN
         <code class="leafygreen-ui-1l06pbn">
          "cn=alice,ou=engineering,dc=example,dc=com"
         </code>
         .
        </p>
        <p class="leafygreen-ui-1kp3ins">
         A user with username
         <code class="leafygreen-ui-1l06pbn">
          bob@DBA.EXAMPLE.COM
         </code>
         matches the second document.
The regex capture group
         <code class="leafygreen-ui-1l06pbn">
          {0}
         </code>
         corresponds to the string
         <code class="leafygreen-ui-1l06pbn">
          bob
         </code>
         .  The
resulting output is the LDAP query
         <code class="leafygreen-ui-1l06pbn">
          "ou=dba,dc=example,dc=com??one?(user=bob)"
         </code>
         .
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
          <code class="leafygreen-ui-1l06pbn">
           mongod
          </code>
         </a>
         or
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
          <code class="leafygreen-ui-1l06pbn">
           mongos
          </code>
         </a>
         executes this
query against the LDAP server, returning the result
         <code class="leafygreen-ui-1l06pbn">
          "cn=bob,ou=dba,dc=example,dc=com"
         </code>
         .
        </p>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.userToDNMapping" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          userToDNMapping
         </code>
        </span>
       </a>
       is unset,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       applies no transformations to the username
when attempting to authenticate or authorize a user against the LDAP server.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       This setting can be configured on a running
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       using the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setParameter/#mongodb-dbcommand-dbcmd.setParameter">
        <code class="leafygreen-ui-1l06pbn">
         setParameter
        </code>
       </a>
       database command.
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.authz.queryTemplate
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.authz.queryTemplate" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.authz.queryTemplate">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : string
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available in MongoDB Enterprise only.
       </em>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       A relative LDAP query URL formatted conforming to
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://tools.ietf.org/html/rfc4515" rel="noopener noreferrer">
        <span>
         RFC4515
        </span>
        <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
         <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
         </path>
         <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
         </path>
        </svg>
       </a>
       and
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://tools.ietf.org/html/rfc4516" rel="noopener noreferrer">
        <span>
         RFC4516
        </span>
        <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
         <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
         </path>
         <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
         </path>
        </svg>
       </a>
       that
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       executes to obtain
the LDAP groups to which the authenticated user belongs to. The query is
relative to the host or hosts specified in
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.servers" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          security.ldap.servers
         </code>
         .
        </span>
       </a>
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         For better performance, consider placing the LDAP groups used for
MongoDB authorization into their own Organizational Unit (
         <code class="leafygreen-ui-1l06pbn">
          OU
         </code>
         ).
        </p>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       In the URL, you can use the following substitution tokens:
      </p>
      <div class="leafygreen-ui-skkc39" tabindex="0">
       <table class="leafygreen-ui-hr8lsv">
        <colgroup>
         <col style="width: 20%;"/>
         <col style="width: 80%;"/>
        </colgroup>
        <thead class="leafygreen-ui-a9ho40">
         <tr data-testid="leafygreen-ui-header-row">
          <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Substitution Token
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Description
            </div>
           </div>
          </th>
         </tr>
        </thead>
        <tbody>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              {USER}
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Substitutes the authenticated username, or the
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.userToDNMapping" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                transformed
               </code>
              </span>
             </a>
             username if a
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.userToDNMapping" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                userToDNMapping
               </code>
              </span>
             </a>
             is specified.
            </div>
           </div>
          </td>
         </tr>
         <tr class="">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              {PROVIDED_USER}
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Substitutes the supplied username, i.e. before either
authentication or
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.userToDNMapping" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                LDAP transformation
               </code>
               .
              </span>
             </a>
            </div>
           </div>
          </td>
         </tr>
        </tbody>
       </table>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       When constructing the query URL, ensure that the order of LDAP parameters
respects RFC4516:
      </p>
      <script class="structured_data" type="application/ld+json">
       {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"[ dn  [ ? [attributes] [ ? [scope] [ ? [filter] [ ? [Extensions] ] ] ] ] ]","programmingLanguage":"Bash"}
      </script>
      <div class="css-16lmvu9">
       <div class="leafygreen-ui-196mwvg">
        <div class="leafygreen-ui-1b1bvay">
         <pre class="leafygreen-ui-1q4bxgx" tabindex="0"><code class="lg-highlight-hljs-light bash leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">[ dn  [ ? [attributes] [ ? [scope] [ ? [filter] [ ? [Extensions] ] ] ] ] ]</td></tr></tbody></table></code></pre>
         <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
          <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
           <div class="leafygreen-ui-xhlipt">
            <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
             <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
             </path>
            </svg>
           </div>
          </button>
         </div>
        </div>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       If your query includes an attribute,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       assumes that the query
retrieves a list of the DNs which this entity is a member of.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If your query does not include an attribute,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       assumes
the query retrieves all entities which the user is member of.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For each LDAP DN returned by the query,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       assigns the authorized
user a corresponding role on the
       <code class="leafygreen-ui-1l06pbn">
        admin
       </code>
       database. If a role on the on the
       <code class="leafygreen-ui-1l06pbn">
        admin
       </code>
       database exactly matches the DN,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       grants the user the
roles and privileges assigned to that role. See the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.createRole/#mongodb-method-db.createRole">
        <code class="leafygreen-ui-1l06pbn">
         db.createRole()
        </code>
       </a>
       method for more information on creating roles.
      </p>
      <div class="leafygreen-ui-vg7qwp" role="note">
       <h2 class="leafygreen-ui-2xicti">
        Example
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         This LDAP query returns any groups listed in the LDAP user object's
         <code class="leafygreen-ui-1l06pbn">
          memberOf
         </code>
         attribute.
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"{USER}?memberOf?base\"","programmingLanguage":"Bash"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-yzcs8i">
           <pre class="leafygreen-ui-1q4bxgx" tabindex="-1"><code class="lg-highlight-hljs-light bash leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-string">"{USER}?memberOf?base"</span></td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
        <p class="leafygreen-ui-1kp3ins">
         Your LDAP configuration may not include the
         <code class="leafygreen-ui-1l06pbn">
          memberOf
         </code>
         attribute as part
of the user schema, may possess a different attribute for reporting group
membership, or may not track group membership through attributes.
Configure your query with respect to your own unique LDAP configuration.
        </p>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       If unset,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       cannot authorize users using LDAP.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       This setting can be configured on a running
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       using the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/setParameter/#mongodb-dbcommand-dbcmd.setParameter">
        <code class="leafygreen-ui-1l06pbn">
         setParameter
        </code>
       </a>
       database command.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         An explanation of
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://tools.ietf.org/html/rfc4515" rel="noopener noreferrer">
          <span>
           RFC4515
          </span>
          <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
           <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
           </path>
           <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
           </path>
          </svg>
         </a>
         ,
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://tools.ietf.org/html/rfc4516" rel="noopener noreferrer">
          <span>
           RFC4516
          </span>
          <svg alt="" aria-hidden="true" class="leafygreen-ui-1ie5kuq" height="16" role="presentation" viewbox="0 0 16 16" width="16">
           <path d="M13.823 2.4491C13.8201 2.30008 13.6999 2.17994 13.5509 2.17704L9.5062 2.09836C9.25654 2.09351 9.12821 2.39519 9.30482 2.5718L10.3856 3.65257L7.93433 6.10383C7.87964 6.15852 7.83047 6.21665 7.78683 6.27752L5.99909 8.06525C5.46457 8.59977 5.46457 9.4664 5.99909 10.0009C6.53361 10.5354 7.40023 10.5354 7.93475 10.0009L9.72249 8.21317C9.78336 8.16953 9.84148 8.12037 9.89618 8.06567L12.3474 5.61441L13.4282 6.69518C13.6048 6.87179 13.9065 6.74347 13.9016 6.4938L13.823 2.4491Z" fill="currentColor">
           </path>
           <path d="M7.25 3.12893C7.66421 3.12893 8 3.46472 8 3.87893C8 4.29315 7.66421 4.62893 7.25 4.62893H4C3.72386 4.62893 3.5 4.85279 3.5 5.12893V11.9929C3.5 12.2691 3.72386 12.4929 4 12.4929H10.864C11.1401 12.4929 11.364 12.2691 11.364 11.9929V8.75C11.364 8.33579 11.6998 8 12.114 8C12.5282 8 12.864 8.33579 12.864 8.75V11.9929C12.864 13.0975 11.9686 13.9929 10.864 13.9929H4C2.89543 13.9929 2 13.0975 2 11.9929V5.12893C2 4.02436 2.89543 3.12893 4 3.12893H7.25Z" fill="currentColor">
           </path>
          </svg>
         </a>
         or LDAP queries is out
of scope for the MongoDB Documentation. Please review the RFC directly or
use your preferred LDAP resource.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       security.ldap.validateLDAPServerConfig
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-security.ldap.validateLDAPServerConfig" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-security.ldap.validateLDAPServerConfig">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : true
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available in MongoDB Enterprise
       </em>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       A flag that determines if the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       or
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       instance checks the availability of the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-security.ldap.servers" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          LDAP server(s)
         </code>
        </span>
       </a>
       as part of its
startup:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         If
         <code class="leafygreen-ui-1l06pbn">
          true
         </code>
         , the
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
          <code class="leafygreen-ui-1l06pbn">
           mongod
          </code>
         </a>
         or
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
          <code class="leafygreen-ui-1l06pbn">
           mongos
          </code>
         </a>
         instance performs the availability check and only continues to
start up if the LDAP server is available.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         If
         <code class="leafygreen-ui-1l06pbn">
          false
         </code>
         , the
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
          <code class="leafygreen-ui-1l06pbn">
           mongod
          </code>
         </a>
         or
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
          <code class="leafygreen-ui-1l06pbn">
           mongos
          </code>
         </a>
         instance skips the availability check; i.e. the instance starts up
even if the LDAP server is unavailable.
        </p>
       </li>
      </ul>
     </dd>
    </dl>
   </section>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    <code class="leafygreen-ui-1l06pbn">
     setParameter
    </code>
    Option
    <a class="headerlink leafygreen-ui-1kepx47" href="#setparameter-option" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="setparameter-option">
     </div>
    </a>
   </h3>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      setParameter
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-setParameter" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-setParameter">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Set MongoDB parameter or parameters described in
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/">
       MongoDB Server Parameters for a Self-Managed Deployment
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      To set parameters in the YAML configuration file, use the following
format:
     </p>
     <script class="structured_data" type="application/ld+json">
      {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"setParameter:\n   &lt;parameter1&gt;: &lt;value1&gt;\n   &lt;parameter2&gt;: &lt;value2&gt;","programmingLanguage":"YAML"}
     </script>
     <div class="css-16lmvu9">
      <div class="leafygreen-ui-196mwvg">
       <div class="leafygreen-ui-yzcs8i">
        <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">setParameter:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">&lt;parameter1&gt;:</span> <span class="lg-highlight-string">&lt;value1&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">&lt;parameter2&gt;:</span> <span class="lg-highlight-string">&lt;value2&gt;</span></td></tr></tbody></table></code></pre>
        <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
         <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
          <div class="leafygreen-ui-xhlipt">
           <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
            <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
            </path>
           </svg>
          </div>
         </button>
        </div>
       </div>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      For example, to specify the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.enableLocalhostAuthBypass">
       <code class="leafygreen-ui-1l06pbn">
        enableLocalhostAuthBypass
       </code>
      </a>
      in
the configuration file:
     </p>
     <script class="structured_data" type="application/ld+json">
      {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"setParameter:\n   enableLocalhostAuthBypass: false","programmingLanguage":"YAML"}
     </script>
     <div class="css-16lmvu9">
      <div class="leafygreen-ui-196mwvg">
       <div class="leafygreen-ui-yzcs8i">
        <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">setParameter:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">enableLocalhostAuthBypass:</span> <span class="lg-highlight-literal">false</span></td></tr></tbody></table></code></pre>
        <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
         <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
          <div class="leafygreen-ui-xhlipt">
           <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
            <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
            </path>
           </svg>
          </div>
         </button>
        </div>
       </div>
      </div>
     </div>
    </dd>
   </dl>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     LDAP Parameters
     <a class="headerlink leafygreen-ui-1kepx47" href="#ldap-parameters" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="ldap-parameters">
      </div>
     </a>
    </h4>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       setParameter.ldapUserCacheInvalidationInterval
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-setParameter.ldapUserCacheInvalidationInterval" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-setParameter.ldapUserCacheInvalidationInterval">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : int
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 30
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For use with
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       servers using
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-ldap-external/#std-label-security-ldap-external">
        LDAP Authorization on Self-Managed Deployments.
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The interval (in seconds)
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       waits
between external user cache flushes. After
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       flushes the external
user cache, MongoDB
reacquires authorization data from the LDAP server the
next time an LDAP-authorized user issues an operation.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Increasing the value specified increases the amount of time
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       and the LDAP server can be out of sync, but reduces the load on
the LDAP server. Conversely, decreasing the value specified
decreases the time
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       and the LDAP server can be out of sync while
increasing the load on the LDAP server.
      </p>
     </dd>
    </dl>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"setParameter:\n   ldapUserCacheInvalidationInterval: &lt;int&gt;","programmingLanguage":"YAML"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">setParameter:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">ldapUserCacheInvalidationInterval:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
   </section>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    <code class="leafygreen-ui-1l06pbn">
     storage
    </code>
    Options
    <a class="headerlink leafygreen-ui-1kepx47" href="#storage-options" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="storage-options">
     </div>
    </a>
   </h3>
   <div>
    <p>
     <em>
      Changed in version 6.1
     </em>
     :
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        MongoDB always enables journaling. As a result, MongoDB removes the
        <code class="leafygreen-ui-1l06pbn">
         storage.journal.enabled
        </code>
        option and the corresponding
        <code class="leafygreen-ui-1l06pbn">
         --journal
        </code>
        and
        <code class="leafygreen-ui-1l06pbn">
         --nojournal
        </code>
        command-line options.
       </p>
      </li>
     </ul>
    </p>
   </div>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"storage:\n   dbPath: &lt;string&gt;\n   journal:\n      commitIntervalMs: &lt;num&gt;\n   directoryPerDB: &lt;boolean&gt;\n   syncPeriodSecs: &lt;int&gt;\n   engine: &lt;string&gt;\n   wiredTiger:\n      engineConfig:\n         cacheSizeGB: &lt;number&gt;\n         journalCompressor: &lt;string&gt;\n         directoryForIndexes: &lt;boolean&gt;\n         maxCacheOverflowFileSizeGB: &lt;number&gt;\n      collectionConfig:\n         blockCompressor: &lt;string&gt;\n      indexConfig:\n         prefixCompression: &lt;boolean&gt;\n   inMemory:\n      engineConfig:\n         inMemorySizeGB: &lt;number&gt;\n   oplogMinRetentionHours: &lt;double&gt;","programmingLanguage":"YAML"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">storage:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">dbPath:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">journal:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">commitIntervalMs:</span> <span class="lg-highlight-string">&lt;num&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">directoryPerDB:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">syncPeriodSecs:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">engine:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">wiredTiger:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">engineConfig:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">cacheSizeGB:</span> <span class="lg-highlight-string">&lt;number&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">journalCompressor:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">directoryForIndexes:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">maxCacheOverflowFileSizeGB:</span> <span class="lg-highlight-string">&lt;number&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">collectionConfig:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">blockCompressor:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">indexConfig:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">prefixCompression:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">inMemory:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">engineConfig:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">inMemorySizeGB:</span> <span class="lg-highlight-string">&lt;number&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">oplogMinRetentionHours:</span> <span class="lg-highlight-string">&lt;double&gt;</span></td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      storage.dbPath
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.dbPath" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.dbPath">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      :
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <code class="leafygreen-ui-1l06pbn">
         /data/db
        </code>
        on Linux and macOS
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        <code class="leafygreen-ui-1l06pbn">
         \data\db
        </code>
        on Windows
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      The directory where the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      instance stores its
data.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.dbPath" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         storage.dbPath
        </code>
       </span>
      </a>
      setting is available only for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       .
      </a>
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <h3 class="leafygreen-ui-144d5kf">
       <strong>
        Configuration Files
       </strong>
      </h3>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        The default
        <code class="leafygreen-ui-1l06pbn">
         mongod.conf
        </code>
        configuration file included with
package manager installations uses the following platform-specific
default values for
        <code class="leafygreen-ui-1l06pbn">
         storage.dbPath
        </code>
        :
       </p>
       <div class="leafygreen-ui-skkc39" tabindex="0">
        <table class="leafygreen-ui-hr8lsv">
         <colgroup>
          <col style="width: 35%;"/>
          <col style="width: 30%;"/>
          <col style="width: 35%;"/>
         </colgroup>
         <thead class="leafygreen-ui-a9ho40">
          <tr data-testid="leafygreen-ui-header-row">
           <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
            <div class="leafygreen-ui-ui0te9">
             <div>
              Platform
             </div>
            </div>
           </th>
           <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
            <div class="leafygreen-ui-ui0te9">
             <div>
              Package Manager
             </div>
            </div>
           </th>
           <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
            <div class="leafygreen-ui-ui0te9">
             <div>
              Default
              <code class="leafygreen-ui-1l06pbn">
               storage.dbPath
              </code>
             </div>
            </div>
           </th>
          </tr>
         </thead>
         <tbody>
          <tr class="">
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              <span class="leafygreen-ui-vm4wms" tabindex="0">
               RHEL
              </span>
              / CentOS and Amazon
             </div>
            </div>
           </td>
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              <code class="leafygreen-ui-1l06pbn">
               yum
              </code>
             </div>
            </div>
           </td>
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              <code class="leafygreen-ui-1l06pbn">
               /var/lib/mongo
              </code>
             </div>
            </div>
           </td>
          </tr>
          <tr class="">
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              SUSE
             </div>
            </div>
           </td>
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              <code class="leafygreen-ui-1l06pbn">
               zypper
              </code>
             </div>
            </div>
           </td>
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              <code class="leafygreen-ui-1l06pbn">
               /var/lib/mongo
              </code>
             </div>
            </div>
           </td>
          </tr>
          <tr class="">
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              Ubuntu and Debian
             </div>
            </div>
           </td>
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              <code class="leafygreen-ui-1l06pbn">
               apt
              </code>
             </div>
            </div>
           </td>
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              <code class="leafygreen-ui-1l06pbn">
               /var/lib/mongodb
              </code>
             </div>
            </div>
           </td>
          </tr>
          <tr class="">
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              macOS
             </div>
            </div>
           </td>
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              <code class="leafygreen-ui-1l06pbn">
               brew
              </code>
             </div>
            </div>
           </td>
           <td class="leafygreen-ui-1drjk7h">
            <div class="leafygreen-ui-1n4j8xf">
             <div>
              <code class="leafygreen-ui-1l06pbn">
               /usr/local/var/mongodb
              </code>
             </div>
            </div>
           </td>
          </tr>
         </tbody>
        </table>
       </div>
       <p class="leafygreen-ui-1kp3ins">
        The Linux package init scripts do not expect
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.dbPath" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           storage.dbPath
          </code>
         </span>
        </a>
        to change from the
defaults. If you use the Linux packages and change
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.dbPath" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           storage.dbPath
          </code>
         </span>
        </a>
        , you must
use your own init scripts and disable the built-in scripts.
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      storage.journal.commitIntervalMs
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.journal.commitIntervalMs" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.journal.commitIntervalMs">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : number
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : 100
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The maximum amount of time in milliseconds that
the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      process allows between
journal operations. Values can range from 1 to 500 milliseconds. Lower
values increase the durability of the journal, at the expense of disk
performance.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      On WiredTiger, the default journal commit interval is 100
milliseconds. Additionally, a write that includes or implies
      <code class="leafygreen-ui-1l06pbn">
       j:true
      </code>
      causes an immediate sync of the journal. For details
or additional conditions that affect the frequency of the sync, see
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/journaling/#std-label-journal-process">
       Journaling Process.
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.journal.commitIntervalMs" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         storage.journal.commitIntervalMs
        </code>
       </span>
      </a>
      setting is available only for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       .
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Not available for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      instances that use the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/inmemory/#std-label-storage-inmemory">
       in-memory storage engine.
      </a>
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      storage.directoryPerDB
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.directoryPerDB" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.directoryPerDB">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : false
     </p>
     <p class="leafygreen-ui-1kp3ins">
      When
      <code class="leafygreen-ui-1l06pbn">
       true
      </code>
      , MongoDB uses a separate directory to store data for each database. The
directories are under the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.dbPath" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         storage.dbPath
        </code>
       </span>
      </a>
      directory, and each subdirectory
name corresponds to the database name.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.directoryPerDB" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         storage.directoryPerDB
        </code>
       </span>
      </a>
      setting is available only for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       .
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Not available for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      instances that use the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/inmemory/#std-label-storage-inmemory">
       in-memory storage engine.
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Starting in MongoDB 5.0, dropping the final collection in a database
(or dropping the database itself) when
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.directoryPerDB" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         storage.directoryPerDB
        </code>
       </span>
      </a>
      is enabled deletes the newly empty
subdirectory for that database.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      To change the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.directoryPerDB" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         storage.directoryPerDB
        </code>
       </span>
      </a>
      option for existing
deployments:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        For standalone instances:
       </p>
       <ol class="leafygreen-ui-rioki0" type="1">
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          Use
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/database-tools/mongodump/#mongodb-binary-bin.mongodump" target="_self">
           <span>
            <code class="leafygreen-ui-1l06pbn">
             mongodump
            </code>
           </span>
          </a>
          on the existing
          <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
           <code class="leafygreen-ui-1l06pbn">
            mongod
           </code>
          </a>
          instance to generate a backup.
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          Stop the
          <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
           <code class="leafygreen-ui-1l06pbn">
            mongod
           </code>
          </a>
          instance.
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          Add the
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.directoryPerDB" target="_self">
           <span>
            <code class="leafygreen-ui-1l06pbn">
             storage.directoryPerDB
            </code>
           </span>
          </a>
          value
          <strong>
           and
          </strong>
          configure a new data directory
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          Restart the
          <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
           <code class="leafygreen-ui-1l06pbn">
            mongod
           </code>
          </a>
          instance.
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          Use
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/database-tools/mongorestore/#mongodb-binary-bin.mongorestore" target="_self">
           <span>
            <code class="leafygreen-ui-1l06pbn">
             mongorestore
            </code>
           </span>
          </a>
          to populate the new data
directory.
         </p>
        </li>
       </ol>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        For replica sets:
       </p>
       <ol class="leafygreen-ui-rioki0" type="1">
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          Stop a secondary member.
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          Add the
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.directoryPerDB" target="_self">
           <span>
            <code class="leafygreen-ui-1l06pbn">
             storage.directoryPerDB
            </code>
           </span>
          </a>
          value
          <strong>
           and
          </strong>
          configure a new data directory to that secondary member.
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          Restart that secondary.
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          Use
          <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/replica-set-sync/#std-label-replica-set-initial-sync">
           initial sync
          </a>
          to populate
the new data directory.
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          Update remaining secondaries in the same fashion.
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          Step down the primary, and update the stepped-down member in the
same fashion.
         </p>
        </li>
       </ol>
      </li>
     </ul>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      storage.syncPeriodSecs
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.syncPeriodSecs" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.syncPeriodSecs">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : number
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : 60
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The amount of time that can pass before MongoDB flushes data to the data
files.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <strong>
       Do not set this value on
production systems.
      </strong>
      In almost every situation, you should use the
default setting.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      process writes data very quickly to the journal and
lazily to the data files.
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.syncPeriodSecs" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         storage.syncPeriodSecs
        </code>
       </span>
      </a>
      has no effect on
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/journaling/#std-label-journaling-internals">
       Journaling
      </a>
      , but if
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.syncPeriodSecs" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         storage.syncPeriodSecs
        </code>
       </span>
      </a>
      is
set to
      <code class="leafygreen-ui-1l06pbn">
       0
      </code>
      the journal eventually consumes all available disk space.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.syncPeriodSecs" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         storage.syncPeriodSecs
        </code>
       </span>
      </a>
      setting is available only for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       .
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Not available for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      instances that use the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/inmemory/#std-label-storage-inmemory">
       in-memory storage engine.
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      To provide
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-durable">
       durable
      </a>
      data,
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger">
       WiredTiger
      </a>
      uses
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/#std-label-storage-wiredtiger-checkpoints">
       checkpoints
      </a>
      . For more
details, see
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/journaling/#std-label-journaling-wiredTiger">
       Journaling and the WiredTiger Storage Engine.
      </a>
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      storage.engine
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.engine" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.engine">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      :
      <code class="leafygreen-ui-1l06pbn">
       wiredTiger
      </code>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The storage engine for the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      database. Available
values include:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width: 20%;"/>
        <col style="width: 80%;"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Value
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Description
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             wiredTiger
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            To specify the
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/">
             WiredTiger Storage Engine.
            </a>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             inMemory
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <p class="leafygreen-ui-1kp3ins">
             To specify the
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/inmemory/">
              In-Memory Storage Engine for Self-Managed Deployments.
             </a>
            </p>
            <p class="leafygreen-ui-1kp3ins">
             Available in MongoDB Enterprise only.
            </p>
            <p class="leafygreen-ui-1kp3ins">
             If you attempt to start a
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
              <code class="leafygreen-ui-1l06pbn">
               mongod
              </code>
             </a>
             with a
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.dbPath" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                storage.dbPath
               </code>
              </span>
             </a>
             that contains data files produced
by a storage engine other than the one specified by
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.engine" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                storage.engine
               </code>
              </span>
             </a>
             ,
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
              <code class="leafygreen-ui-1l06pbn">
               mongod
              </code>
             </a>
             refuses to start.
            </p>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      storage.oplogMinRetentionHours
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.oplogMinRetentionHours" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.oplogMinRetentionHours">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : double
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Specifies the minimum number of hours to preserve an oplog entry,
where the decimal values represent the fractions of an hour. For
example, a value of
      <code class="leafygreen-ui-1l06pbn">
       1.5
      </code>
      represents one hour and thirty
minutes.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The value must be greater than or equal to
      <code class="leafygreen-ui-1l06pbn">
       0
      </code>
      . A value of
      <code class="leafygreen-ui-1l06pbn">
       0
      </code>
      indicates that the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      should truncate the oplog
starting with the oldest entries to maintain the configured
maximum oplog size.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Defaults to
      <code class="leafygreen-ui-1l06pbn">
       0
      </code>
      .
     </p>
     <p class="leafygreen-ui-1kp3ins">
      A
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      started with
      <code class="leafygreen-ui-1l06pbn">
       oplogMinRetentionHours
      </code>
      only
removes an oplog entry
      <em>
       if
      </em>
      :
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        The oplog has reached the maximum configured oplog size
        <em>
         and
        </em>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        The oplog entry is older than the configured number of hours based
on the host system clock.
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      has the following behavior when configured
with a minimum oplog retention period:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        The oplog can grow without constraint so as to retain oplog entries
for the configured number of hours. This may result in reduction or
exhaustion of system disk space due to a combination of high write
volume and large retention period.
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        If the oplog grows beyond its maximum size, the
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        may continue to hold that disk space even if the oplog returns to its
maximum size
        <em>
         or
        </em>
        is configured for a smaller maximum size. See
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/replSetResizeOplog/#std-label-replSetResizeOplog-cmd-compact">
         Reducing Oplog Size Does Not Immediately Return Disk Space.
        </a>
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        The
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        compares the system wall clock to an
oplog entries creation wall clock time when enforcing oplog entry
retention. Clock drift between cluster components may result in
unexpected oplog retention behavior. See
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/administration/production-notes/#std-label-production-notes-clock-synchronization">
         Clock Synchronization
        </a>
        for more information on
clock synchronization across cluster members.
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      To change the minimum oplog retention period after starting the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      , use
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/replSetResizeOplog/#mongodb-dbcommand-dbcmd.replSetResizeOplog">
       <code class="leafygreen-ui-1l06pbn">
        replSetResizeOplog
       </code>
      </a>
      .
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/replSetResizeOplog/#mongodb-dbcommand-dbcmd.replSetResizeOplog">
       <code class="leafygreen-ui-1l06pbn">
        replSetResizeOplog
       </code>
      </a>
      enables you to resize the oplog
dynamically without restarting the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      process. To
persist the changes made using
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/replSetResizeOplog/#mongodb-dbcommand-dbcmd.replSetResizeOplog">
       <code class="leafygreen-ui-1l06pbn">
        replSetResizeOplog
       </code>
      </a>
      through a restart, update the value of
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.oplogMinRetentionHours" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         oplogMinRetentionHours
        </code>
        .
       </span>
      </a>
     </p>
    </dd>
   </dl>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-wiredTiger-storage-options">
   </span>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     <code class="leafygreen-ui-1l06pbn">
      storage.wiredTiger
     </code>
     Options
     <a class="headerlink leafygreen-ui-1kepx47" href="#storage.wiredtiger-options" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="storage.wiredtiger-options">
      </div>
     </a>
    </h4>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"storage:\n   wiredTiger:\n      engineConfig:\n         cacheSizeGB: &lt;number&gt;\n         journalCompressor: &lt;string&gt;\n         directoryForIndexes: &lt;boolean&gt;\n         maxCacheOverflowFileSizeGB: &lt;number&gt;\n      collectionConfig:\n         blockCompressor: &lt;string&gt;\n      indexConfig:\n         prefixCompression: &lt;boolean&gt;","programmingLanguage":"YAML"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">storage:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">wiredTiger:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">engineConfig:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">cacheSizeGB:</span> <span class="lg-highlight-string">&lt;number&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">journalCompressor:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">directoryForIndexes:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">maxCacheOverflowFileSizeGB:</span> <span class="lg-highlight-string">&lt;number&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">collectionConfig:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">blockCompressor:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">indexConfig:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">prefixCompression:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       storage.wiredTiger.engineConfig.cacheSizeGB
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.wiredTiger.engineConfig.cacheSizeGB" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.wiredTiger.engineConfig.cacheSizeGB">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : float
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Defines the maximum size of the internal cache that WiredTiger
uses for all data. The memory consumed by an index build (see
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.maxIndexBuildMemoryUsageMegabytes">
        <code class="leafygreen-ui-1l06pbn">
         maxIndexBuildMemoryUsageMegabytes
        </code>
       </a>
       ) is separate from the
WiredTiger cache memory.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Values can range from
       <code class="leafygreen-ui-1l06pbn">
        0.25
       </code>
       GB to
       <code class="leafygreen-ui-1l06pbn">
        10000
       </code>
       GB.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The default WiredTiger internal cache size is the larger of either:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         50% of (RAM - 1 GB), or
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         256 MB.
        </p>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       For example, on a system with a total of 4GB of RAM the
WiredTiger cache uses 1.5GB of RAM (
       <code class="leafygreen-ui-1l06pbn">
        0.5 * (4 GB - 1 GB) =
1.5 GB
       </code>
       ). Conversely, on a system with a total of 1.25 GB of
RAM WiredTiger allocates 256 MB to the WiredTiger cache
because that is more than half of the total RAM minus one
gigabyte (
       <code class="leafygreen-ui-1l06pbn">
        0.5 * (1.25 GB - 1 GB) = 128 MB &lt; 256 MB
       </code>
       ).
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         In some instances, such as when running in a container, the database
can have memory constraints that are lower than the total system
memory. In such instances, this memory limit, rather than the total
system memory, is used as the maximum RAM available.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         To see the memory limit, see
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/hostInfo/#mongodb-data-hostInfo.system.memLimitMB">
          <code class="leafygreen-ui-1l06pbn">
           hostInfo.system.memLimitMB
          </code>
          .
         </a>
        </p>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       Avoid increasing the WiredTiger internal cache size above its
default value.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       With WiredTiger, MongoDB utilizes both the WiredTiger internal cache
and the filesystem cache.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       With the filesystem cache, MongoDB automatically uses all free memory
that is not used by the WiredTiger cache or by other processes.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         The
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.wiredTiger.engineConfig.cacheSizeGB" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            storage.wiredTiger.engineConfig.cacheSizeGB
           </code>
          </span>
         </a>
         limits the size of the WiredTiger internal
cache. The operating system uses the available free memory
for filesystem cache, which allows the compressed MongoDB data
files to stay in memory. In addition, the operating system
uses any free RAM to buffer file system blocks and file system
cache.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         To accommodate the additional consumers of RAM, you may have to
decrease WiredTiger internal cache size.
        </p>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       The default WiredTiger internal cache size value assumes that there is a
single
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       instance per machine. If a single machine
contains multiple MongoDB instances, then you should decrease the setting to
accommodate the other
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       instances.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If you run
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       in a container (for example,
       <code class="leafygreen-ui-1l06pbn">
        lxc
       </code>
       ,
       <code class="leafygreen-ui-1l06pbn">
        cgroups
       </code>
       , Docker, etc.) that does
       <em>
        not
       </em>
       have access to all of the
RAM available in a system, you must set
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.wiredTiger.engineConfig.cacheSizeGB" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          storage.wiredTiger.engineConfig.cacheSizeGB
         </code>
        </span>
       </a>
       to a value
less than the amount of RAM available in the container. The exact
amount depends on the other processes running in the container. See
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/hostInfo/#mongodb-data-hostInfo.system.memLimitMB">
        <code class="leafygreen-ui-1l06pbn">
         memLimitMB
        </code>
        .
       </a>
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       storage.wiredTiger.engineConfig.journalCompressor
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.wiredTiger.engineConfig.journalCompressor" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.wiredTiger.engineConfig.journalCompressor">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : snappy
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Specifies the type of compression to use to compress WiredTiger
journal data.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Available compressors are:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          none
         </code>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-snappy">
          snappy
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-zlib">
          zlib
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-zstd">
          zstd
         </a>
        </p>
       </li>
      </ul>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       storage.wiredTiger.engineConfig.directoryForIndexes
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.wiredTiger.engineConfig.directoryForIndexes" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.wiredTiger.engineConfig.directoryForIndexes">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : boolean
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : false
      </p>
      <p class="leafygreen-ui-1kp3ins">
       When
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.wiredTiger.engineConfig.directoryForIndexes" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          storage.wiredTiger.engineConfig.directoryForIndexes
         </code>
        </span>
       </a>
       is
       <code class="leafygreen-ui-1l06pbn">
        true
       </code>
       ,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       stores indexes and collections in separate
subdirectories under the data (i.e.
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.dbPath" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          storage.dbPath
         </code>
        </span>
       </a>
       ) directory.
Specifically,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       stores the indexes in a subdirectory named
       <code class="leafygreen-ui-1l06pbn">
        index
       </code>
       and the collection data in a subdirectory named
       <code class="leafygreen-ui-1l06pbn">
        collection
       </code>
       .
      </p>
      <p class="leafygreen-ui-1kp3ins">
       By using a symbolic link, you can specify a different location for
the indexes. Specifically, when
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       instance is
       <strong>
        not
       </strong>
       running, move the
       <code class="leafygreen-ui-1l06pbn">
        index
       </code>
       subdirectory to the destination and
create a symbolic link named
       <code class="leafygreen-ui-1l06pbn">
        index
       </code>
       under the data directory to
the new destination.
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       storage.wiredTiger.engineConfig.zstdCompressionLevel
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.wiredTiger.engineConfig.zstdCompressionLevel" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.wiredTiger.engineConfig.zstdCompressionLevel">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : integer
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 6
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Specifies the level of compression applied when using
the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-zstd">
        zstd
       </a>
       compressor.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Values can range from 1 to 22.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The higher the specified value for
       <code class="leafygreen-ui-1l06pbn">
        zstdCompressionLevel
       </code>
       the higher the compression which is applied.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Only applicable when
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.wiredTiger.collectionConfig.blockCompressor" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          blockCompressor
         </code>
        </span>
       </a>
       is set to
       <code class="leafygreen-ui-1l06pbn">
        zstd
       </code>
       .
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Available starting in MongoDB 5.0
       </em>
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       storage.wiredTiger.collectionConfig.blockCompressor
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.wiredTiger.collectionConfig.blockCompressor" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.wiredTiger.collectionConfig.blockCompressor">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : snappy
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Specifies the default compression for collection data. You can
override this on a per-collection basis when creating collections.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Available compressors are:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          none
         </code>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-snappy">
          snappy
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-zlib">
          zlib
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-zstd">
          zstd
         </a>
        </p>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.wiredTiger.collectionConfig.blockCompressor" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          storage.wiredTiger.collectionConfig.blockCompressor
         </code>
        </span>
       </a>
       affects all collections created. If you change
the value of
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.wiredTiger.collectionConfig.blockCompressor" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          storage.wiredTiger.collectionConfig.blockCompressor
         </code>
        </span>
       </a>
       on an existing MongoDB deployment, all new
collections uses the specified compressor. Existing collections
continue to use the compressor specified when they were
created, or the default compressor at that time.
      </p>
     </dd>
    </dl>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       storage.wiredTiger.indexConfig.prefixCompression
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.wiredTiger.indexConfig.prefixCompression" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.wiredTiger.indexConfig.prefixCompression">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : true
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Enables or disables
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-prefix-compression">
        prefix compression
       </a>
       for index data.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Specify
       <code class="leafygreen-ui-1l06pbn">
        true
       </code>
       for
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.wiredTiger.indexConfig.prefixCompression" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          storage.wiredTiger.indexConfig.prefixCompression
         </code>
        </span>
       </a>
       to enable
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-prefix-compression">
        prefix compression
       </a>
       for
index data, or
       <code class="leafygreen-ui-1l06pbn">
        false
       </code>
       to disable prefix compression for index data.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.wiredTiger.indexConfig.prefixCompression" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          storage.wiredTiger.indexConfig.prefixCompression
         </code>
        </span>
       </a>
       setting affects all indexes created. If you change
the value of
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-storage.wiredTiger.indexConfig.prefixCompression" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          storage.wiredTiger.indexConfig.prefixCompression
         </code>
        </span>
       </a>
       on an existing MongoDB deployment, all new
indexes uses prefix compression. Existing indexes
are not affected.
      </p>
     </dd>
    </dl>
   </section>
   <section>
    <h4 class="contains-headerlink leafygreen-ui-1vzlt5f">
     <code class="leafygreen-ui-1l06pbn">
      storage.inmemory
     </code>
     Options
     <a class="headerlink leafygreen-ui-1kepx47" href="#storage.inmemory-options" title="Permalink to this heading">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="storage.inmemory-options">
      </div>
     </a>
    </h4>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"storage:\n   inMemory:\n      engineConfig:\n         inMemorySizeGB: &lt;number&gt;","programmingLanguage":"YAML"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">storage:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">inMemory:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">engineConfig:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-attr">inMemorySizeGB:</span> <span class="lg-highlight-string">&lt;number&gt;</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <dl class="setting">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       storage.inMemory.engineConfig.inMemorySizeGB
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-storage.inMemory.engineConfig.inMemorySizeGB" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-storage.inMemory.engineConfig.inMemorySizeGB">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Type
       </em>
       : float
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <em>
        Default
       </em>
       : 50% of physical RAM less 1 GB
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Values can range from 256MB to 10TB and can be a float.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Maximum amount of memory to allocate for
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/inmemory/">
        in-memory storage
engine
       </a>
       data, including indexes, oplog if the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
        <code class="leafygreen-ui-1l06pbn">
         mongod
        </code>
       </a>
       is part of replica set, replica set or sharded
cluster metadata, etc.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       By default, the in-memory storage engine uses 50% of physical RAM minus
1 GB.
      </p>
      <div class="leafygreen-ui-15mdk4" role="note">
       <h2 class="leafygreen-ui-6n7b7d">
        Note
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         Enterprise Feature
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         Available in MongoDB Enterprise only.
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <span class="leafygreen-ui-1qnjd6d" id="std-label-operation-profiling-configuration-options">
    </span>
   </section>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    <code class="leafygreen-ui-1l06pbn">
     operationProfiling
    </code>
    Options
    <a class="headerlink leafygreen-ui-1kepx47" href="#operationprofiling-options" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="operationprofiling-options">
     </div>
    </a>
   </h3>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"operationProfiling:\n   mode: &lt;string&gt;\n   slowOpThresholdMs: &lt;int&gt;\n   slowOpSampleRate: &lt;double&gt;\n   filter: &lt;string&gt;","programmingLanguage":"YAML"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">operationProfiling:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">mode:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">slowOpThresholdMs:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">slowOpSampleRate:</span> <span class="lg-highlight-string">&lt;double&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">filter:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-configuration-profiling-mode">
   </span>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      operationProfiling.mode
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-operationProfiling.mode" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-operationProfiling.mode">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      :
      <code class="leafygreen-ui-1l06pbn">
       off
      </code>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Specifies which operations should be
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/manage-the-database-profiler/">
       profiled
      </a>
      .
The following profiler levels are available:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width: 25%;"/>
        <col style="width: 75%;"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Level
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Description
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             off
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            The profiler is off and does not collect any data.
This is the default profiler level.
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             slowOp
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            The profiler collects data for operations that take longer
than the value of
            <code class="leafygreen-ui-1l06pbn">
             slowms
            </code>
            .
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             all
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            The profiler collects data for all operations.
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <div class="leafygreen-ui-1sjx7ru" role="note">
      <h2 class="leafygreen-ui-29m78u">
       Warning
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Profiling can degrade performance and expose unencrypted query data in the
system log. Carefully consider any performance and security implications
before configuring and enabling the profiler on a production deployment.
       </p>
       <p class="leafygreen-ui-1kp3ins">
        See
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/manage-the-database-profiler/#std-label-database-profiling-overhead">
         Profiler Overhead
        </a>
        for more information on
potential performance degradation.
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-configuration-profiling-slowOpThresholdMs">
   </span>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      operationProfiling.slowOpThresholdMs
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-operationProfiling.slowOpThresholdMs" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-operationProfiling.slowOpThresholdMs">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : integer
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : 100
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The slow operation time threshold, in milliseconds. Operations that run
for longer than this threshold are considered
      <em>
       slow
      </em>
      .
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Slow operations are logged based on
      <code class="leafygreen-ui-1l06pbn">
       workingMillis
      </code>
      , which is the
amount of time that MongoDB spends working on that operation. This means
that factors such as waiting for locks and flow control do not affect
whether an operation exceeds the slow operation threshold.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      When
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.logLevel">
       <code class="leafygreen-ui-1l06pbn">
        logLevel
       </code>
      </a>
      is set to
      <code class="leafygreen-ui-1l06pbn">
       0
      </code>
      , MongoDB records
      <em>
       slow
      </em>
      operations to the diagnostic log at a rate determined by
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-operationProfiling.slowOpSampleRate" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         slowOpSampleRate
        </code>
        .
       </span>
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      At higher
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.logLevel">
       <code class="leafygreen-ui-1l06pbn">
        logLevel
       </code>
      </a>
      settings, all operations appear in
the diagnostic log regardless of their latency with the following
exception: the logging of slow oplog entry messages by the
secondaries. The secondaries log only the slow oplog
entries; increasing the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.logLevel">
       <code class="leafygreen-ui-1l06pbn">
        logLevel
       </code>
      </a>
      does not log all
oplog entries.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      This setting is available for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
       .
      </a>
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        For
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        instances, the setting affects both
the diagnostic log and, if enabled, the profiler.
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        For
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
        </a>
        instances, the setting affects the
diagnostic log only and not the profiler, since profiling is not
available on
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
         .
        </a>
       </p>
      </li>
     </ul>
    </dd>
   </dl>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-configuration-profiling-slowOpSampleRate">
   </span>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      operationProfiling.slowOpSampleRate
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-operationProfiling.slowOpSampleRate" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-operationProfiling.slowOpSampleRate">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : double
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : 1.0
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The fraction of
      <em>
       slow
      </em>
      operations that should be profiled or logged.
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-operationProfiling.slowOpSampleRate" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         operationProfiling.slowOpSampleRate
        </code>
       </span>
      </a>
      accepts values between
0 and 1, inclusive.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-operationProfiling.slowOpSampleRate" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         slowOpSampleRate
        </code>
       </span>
      </a>
      setting is
available for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      and
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
       .
      </a>
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        For
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        instances, the setting affects both
the diagnostic log and, if enabled, the profiler.
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        For
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
        </a>
        instances, the setting affects the
diagnostic log only and not the profiler since profiling is not
available on
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
         .
        </a>
       </p>
      </li>
     </ul>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      operationProfiling.filter
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-operationProfiling.filter" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-operationProfiling.filter">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string representation of a query document
     </p>
     <p class="leafygreen-ui-1kp3ins">
      A filter expression that controls which operations are profiled and
logged.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      When
      <code class="leafygreen-ui-1l06pbn">
       filter
      </code>
      is set,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-operationProfiling.slowOpThresholdMs" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         slowOpThresholdMs
        </code>
       </span>
      </a>
      and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-operationProfiling.slowOpSampleRate" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         slowOpSampleRate
        </code>
       </span>
      </a>
      are not used for
profiling and slow-query log lines.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      When you set a profile filter in the configuration file, the filter
applies to all databases in the deployment. To set a profile filter
for a specific database, use the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.setProfilingLevel/#mongodb-method-db.setProfilingLevel">
       <code class="leafygreen-ui-1l06pbn">
        db.setProfilingLevel()
       </code>
      </a>
      method.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The option takes a string representation of a query document
of the form:
     </p>
     <script class="structured_data" type="application/ld+json">
      {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{ &lt;field1&gt;: &lt;expression1&gt;, ... }","programmingLanguage":"JavaScript"}
     </script>
     <div class="css-16lmvu9">
      <div class="leafygreen-ui-196mwvg">
       <div class="leafygreen-ui-yzcs8i">
        <pre class="leafygreen-ui-1q4bxgx" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{ &lt;field1&gt;: &lt;expression1&gt;, ... }</td></tr></tbody></table></code></pre>
        <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
         <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
          <div class="leafygreen-ui-xhlipt">
           <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
            <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
            </path>
           </svg>
          </div>
         </button>
        </div>
       </div>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      The
      <code class="leafygreen-ui-1l06pbn">
       &lt;field&gt;
      </code>
      can be
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/database-profiler/#std-label-profiler">
       any field in the profiler output
      </a>
      . The
      <code class="leafygreen-ui-1l06pbn">
       &lt;expression&gt;
      </code>
      is a
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/operator/query/#std-label-query-selectors">
       query condition
expression.
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      To specify a profiling filter in a
      <a aria-current="page" class="leafygreen-ui-tqgtui" href="/docs/manual/reference/configuration-options/">
       configuration file
      </a>
      , you must:
     </p>
     <ul class="leafygreen-ui-rioki0">
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        Enclose the filter document in single quotes to pass the document
as a string.
       </p>
      </li>
      <li class="leafygreen-ui-d7p7b6">
       <p class="leafygreen-ui-1kp3ins">
        Use the YAML format of the configuration file.
       </p>
      </li>
     </ul>
     <p class="leafygreen-ui-1kp3ins">
      For example, the following
      <code class="leafygreen-ui-1l06pbn">
       filter
      </code>
      configures the profiler to
log
      <code class="leafygreen-ui-1l06pbn">
       query
      </code>
      operations that take longer than 2 seconds:
     </p>
     <script class="structured_data" type="application/ld+json">
      {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"operationProfiling:\n   mode: all\n   filter: '{ op: \"query\", millis: { $gt: 2000 } }'","programmingLanguage":"YAML"}
     </script>
     <div class="css-16lmvu9">
      <div class="leafygreen-ui-196mwvg">
       <div class="leafygreen-ui-yzcs8i">
        <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">operationProfiling:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">mode:</span> <span class="lg-highlight-string">all</span></td></tr><tr class="leafygreen-ui-1wr1lm6"><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">filter:</span> <span class="lg-highlight-string">'{ op: "query", millis: { $gt: 2000 } }'</span></td></tr></tbody></table></code></pre>
        <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
         <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
          <div class="leafygreen-ui-xhlipt">
           <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
            <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
            </path>
           </svg>
          </div>
         </button>
        </div>
       </div>
      </div>
     </div>
    </dd>
   </dl>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-replication-options">
   </span>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    <code class="leafygreen-ui-1l06pbn">
     replication
    </code>
    Options
    <a class="headerlink leafygreen-ui-1kepx47" href="#replication-options" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="replication-options">
     </div>
    </a>
   </h3>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"replication:\n   oplogSizeMB: &lt;int&gt;\n   replSetName: &lt;string&gt;\n   enableMajorityReadConcern: &lt;boolean&gt;","programmingLanguage":"YAML"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">replication:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">oplogSizeMB:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">replSetName:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">enableMajorityReadConcern:</span> <span class="lg-highlight-string">&lt;boolean&gt;</span></td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      replication.oplogSizeMB
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-replication.oplogSizeMB" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-replication.oplogSizeMB">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : integer
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The maximum size in megabytes for the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-oplog">
       oplog
      </a>
      . The
      <code class="leafygreen-ui-1l06pbn">
       oplogSizeMB
      </code>
      setting configures the uncompressed size of the
oplog, not the size on disk.
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        The oplog can grow past its configured size
limit to avoid deleting the
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/replSetGetStatus/#mongodb-data-replSetGetStatus.optimes.lastCommittedOpTime">
         <code class="leafygreen-ui-1l06pbn">
          majority commit point
         </code>
         .
        </a>
       </p>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      By default, the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      process creates an oplog based
on the maximum amount of space available. For 64-bit systems, the
oplog is typically 5% of available disk space.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Once the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      has created the oplog for the first
time, changing the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.oplogSizeMB" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         replication.oplogSizeMB
        </code>
       </span>
      </a>
      option does not
affect the size of the oplog. To change the maximum oplog size after
starting the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      , use
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/replSetResizeOplog/#mongodb-dbcommand-dbcmd.replSetResizeOplog">
       <code class="leafygreen-ui-1l06pbn">
        replSetResizeOplog
       </code>
      </a>
      .
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/replSetResizeOplog/#mongodb-dbcommand-dbcmd.replSetResizeOplog">
       <code class="leafygreen-ui-1l06pbn">
        replSetResizeOplog
       </code>
      </a>
      enables you to resize the oplog dynamically without restarting the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      process. To persist the changes made using
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/replSetResizeOplog/#mongodb-dbcommand-dbcmd.replSetResizeOplog">
       <code class="leafygreen-ui-1l06pbn">
        replSetResizeOplog
       </code>
      </a>
      through a restart, update the value
of
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.oplogSizeMB" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         oplogSizeMB
        </code>
        .
       </span>
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      See
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/replica-set-oplog/#std-label-replica-set-oplog-sizing">
       Oplog Size
      </a>
      for more information.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.oplogSizeMB" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         replication.oplogSizeMB
        </code>
       </span>
      </a>
      setting is available only for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       .
      </a>
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      replication.replSetName
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-replication.replSetName" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-replication.replSetName">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The name of the replica set that the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      is part of. All hosts
in the replica set must have the same set name.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      If your application connects to more than one replica set, each set must
have a distinct name. Some drivers group replica set connections by
replica set name.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.replSetName" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         replication.replSetName
        </code>
       </span>
      </a>
      setting is available only for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       .
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.replSetName" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         replication.replSetName
        </code>
       </span>
      </a>
      cannot be used in conjunction with
      <code class="leafygreen-ui-1l06pbn">
       storage.indexBuildRetry
      </code>
      .
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      replication.enableMajorityReadConcern
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-replication.enableMajorityReadConcern" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-replication.enableMajorityReadConcern">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : true
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Configures support for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/read-concern-majority/#mongodb-readconcern-readconcern.-majority-">
       <code class="leafygreen-ui-1l06pbn">
        "majority"
       </code>
      </a>
      read concern.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Starting in MongoDB 5.0,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.enableMajorityReadConcern" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         enableMajorityReadConcern
        </code>
       </span>
      </a>
      cannot be changed
and is always set to
      <code class="leafygreen-ui-1l06pbn">
       true
      </code>
      . Attempting to start a storage engine
that does not support majority read concern with the
      <code class="leafygreen-ui-1l06pbn">
       --enableMajorityReadConcern
      </code>
      option fails and return an error
message.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      In earlier versions of MongoDB,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.enableMajorityReadConcern" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         enableMajorityReadConcern
        </code>
       </span>
      </a>
      was configurable.
     </p>
     <div class="leafygreen-ui-1sjx7ru" role="note">
      <h2 class="leafygreen-ui-29m78u">
       Warning
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        If you are using a three-member primary-secondary-arbiter (PSA)
architecture, consider the following:
       </p>
       <ul class="leafygreen-ui-rioki0">
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          The write concern
          <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/write-concern/#mongodb-writeconcern-writeconcern.-majority-">
           <code class="leafygreen-ui-1l06pbn">
            "majority"
           </code>
          </a>
          can cause
performance issues if a secondary is unavailable or lagging. For
advice on how to mitigate these issues, see
          <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/mitigate-psa-performance-issues/#std-label-performance-issues-psa">
           Mitigate Performance Issues with a Self-Managed PSA Replica Set.
          </a>
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          If you are using a global default
          <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/read-concern-majority/#mongodb-readconcern-readconcern.-majority-">
           <code class="leafygreen-ui-1l06pbn">
            "majority"
           </code>
          </a>
          and the write concern is less than the size of the majority,
your queries may return stale (not fully replicated) data.
         </p>
        </li>
       </ul>
      </div>
     </div>
    </dd>
   </dl>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    <code class="leafygreen-ui-1l06pbn">
     sharding
    </code>
    Options
    <a class="headerlink leafygreen-ui-1kepx47" href="#sharding-options" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="sharding-options">
     </div>
    </a>
   </h3>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"sharding:\n   clusterRole: &lt;string&gt;","programmingLanguage":"YAML"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">sharding:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">clusterRole:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      sharding.clusterRole
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-sharding.clusterRole" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-sharding.clusterRole">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The role that the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      instance has in the sharded
cluster. Set this setting to one of the following:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width: 20%;"/>
        <col style="width: 40%;"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Value
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Description
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             configsvr
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <p class="leafygreen-ui-1kp3ins">
             Start this instance as a
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-config-server">
              config server
             </a>
             . The instance
starts on port
             <code class="leafygreen-ui-1l06pbn">
              27019
             </code>
             by default.
            </p>
            <p class="leafygreen-ui-1kp3ins">
             When you configure a MongoDB instance as
clusterRole
             <code class="leafygreen-ui-1l06pbn">
              configsvr
             </code>
             you must also specify a
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.replSetName" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                replSetName
               </code>
               .
              </span>
             </a>
            </p>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             shardsvr
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <p class="leafygreen-ui-1kp3ins">
             Start this instance as a
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-shard">
              shard
             </a>
             . The instance starts
on port
             <code class="leafygreen-ui-1l06pbn">
              27018
             </code>
             by default.
            </p>
            <p class="leafygreen-ui-1kp3ins">
             When you configure a MongoDB instance as a
a clusterRole
             <code class="leafygreen-ui-1l06pbn">
              shardsvr
             </code>
             you must also specify a
             <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.replSetName" target="_self">
              <span>
               <code class="leafygreen-ui-1l06pbn">
                replSetName
               </code>
               .
              </span>
             </a>
            </p>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Setting
        <code class="leafygreen-ui-1l06pbn">
         sharding.clusterRole
        </code>
        requires the
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        instance to be running with replication. To deploy the instance as
a replica set member, use the
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.replSetName" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           replSetName
          </code>
         </span>
        </a>
        setting and specify the name of the replica set.
       </p>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-sharding.clusterRole" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         sharding.clusterRole
        </code>
       </span>
      </a>
      setting is available only for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
       .
      </a>
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      sharding.archiveMovedChunks
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-sharding.archiveMovedChunks" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-sharding.archiveMovedChunks">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      : false.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      During chunk migration, a shard does not save documents migrated from
the shard.
     </p>
    </dd>
   </dl>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    <code class="leafygreen-ui-1l06pbn">
     auditLog
    </code>
    Options
    <a class="headerlink leafygreen-ui-1kepx47" href="#auditlog-options" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="auditlog-options">
     </div>
    </a>
   </h3>
   <div class="leafygreen-ui-15mdk4" role="note">
    <h2 class="leafygreen-ui-6n7b7d">
     Note
    </h2>
    <div class="leafygreen-ui-9mycqc">
     <p class="leafygreen-ui-1kp3ins">
      Available only in
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.mongodb.com/products/mongodb-enterprise-advanced?tck=docs_server" target="_self">
       <span>
        MongoDB Enterprise
       </span>
      </a>
      and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://cloud.mongodb.com/user#/atlas/login" target="_self">
       <span>
        MongoDB Atlas
       </span>
      </a>
      .
     </p>
    </div>
   </div>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"auditLog:\n   destination: &lt;string&gt;\n   format: &lt;string&gt;\n   path: &lt;string&gt;\n   filter: &lt;string&gt;\n   schema: &lt;string&gt;","programmingLanguage":"YAML"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">auditLog:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">destination:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">format:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">path:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">filter:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">schema:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      auditLog.auditEncryptionKeyIdentifier
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-auditLog.auditEncryptionKeyIdentifier" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-auditLog.auditEncryptionKeyIdentifier">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <div>
      <p>
       <em>
        New in version 6.0
       </em>
       .
      </p>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      Specifies the unique identifier of the Key Management
Interoperability Protocol (KMIP) key for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-encryption-at-rest/#std-label-security-encryption-at-rest-audit-log">
       audit log encryption.
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      You cannot use
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.auditEncryptionKeyIdentifier" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         auditLog.auditEncryptionKeyIdentifier
        </code>
       </span>
      </a>
      and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.localAuditKeyFile" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         auditLog.localAuditKeyFile
        </code>
       </span>
      </a>
      together.
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Available only in
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.mongodb.com/products/mongodb-enterprise-advanced?tck=docs_server" target="_self">
         <span>
          MongoDB Enterprise
         </span>
        </a>
        .
MongoDB Enterprise and Atlas have different configuration
requirements.
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      auditLog.compressionMode
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-auditLog.compressionMode" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-auditLog.compressionMode">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <div>
      <p>
       <em>
        New in version 5.3
       </em>
       .
      </p>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      Specifies the compression mode for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-encryption-at-rest/#std-label-security-encryption-at-rest-audit-log">
       audit log encryption
      </a>
      . You must also enable audit log
encryption using either
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.auditEncryptionKeyIdentifier" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         auditLog.auditEncryptionKeyIdentifier
        </code>
       </span>
      </a>
      or
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.localAuditKeyFile" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         auditLog.localAuditKeyFile
        </code>
       </span>
      </a>
      .
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.compressionMode" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         auditLog.compressionMode
        </code>
       </span>
      </a>
      can be set to one of these values:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width: 15%;"/>
        <col style="width: 50%;"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Value
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Description
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             zstd
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            Use the
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-zstd">
             zstd
            </a>
            algorithm to compress the audit log.
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             none
            </code>
            <em>
             (default)
            </em>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            Do not compress the audit log.
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Available only in
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.mongodb.com/products/mongodb-enterprise-advanced?tck=docs_server" target="_self">
         <span>
          MongoDB Enterprise
         </span>
        </a>
        .
MongoDB Enterprise and Atlas have different configuration
requirements.
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      auditLog.destination
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-auditLog.destination" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-auditLog.destination">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      When set,
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.destination" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         auditLog.destination
        </code>
       </span>
      </a>
      enables
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/auditing/#std-label-auditing">
       auditing
      </a>
      and
specifies where
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
       <code class="leafygreen-ui-1l06pbn">
        mongos
       </code>
      </a>
      or
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      sends all audit events.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.destination" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         auditLog.destination
        </code>
       </span>
      </a>
      can have one of the following values:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width: 15%;"/>
        <col style="width: 50%;"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Value
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Description
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             syslog
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <p class="leafygreen-ui-1kp3ins">
             Output the audit events to syslog in JSON format. Not available on
Windows. Audit messages have a syslog severity level of
             <code class="leafygreen-ui-1l06pbn">
              info
             </code>
             and a facility level of
             <code class="leafygreen-ui-1l06pbn">
              user
             </code>
             .
            </p>
            <p class="leafygreen-ui-1kp3ins">
             The syslog message limit can result in the truncation of
audit messages. The auditing system neither detects the
truncation nor errors upon its occurrence.
            </p>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             console
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            Output the audit events to
            <code class="leafygreen-ui-1l06pbn">
             stdout
            </code>
            in JSON format.
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             file
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            Output the audit events to the file specified in
            <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.path" target="_self">
             <span>
              <code class="leafygreen-ui-1l06pbn">
               auditLog.path
              </code>
             </span>
            </a>
            in the format specified in
            <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.format" target="_self">
             <span>
              <code class="leafygreen-ui-1l06pbn">
               auditLog.format
              </code>
              .
             </span>
            </a>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Available only in
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.mongodb.com/products/mongodb-enterprise-advanced?tck=docs_server" target="_self">
         <span>
          MongoDB Enterprise
         </span>
        </a>
        and
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://cloud.mongodb.com/user#/atlas/login" target="_self">
         <span>
          MongoDB Atlas
         </span>
        </a>
        .
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      auditLog.filter
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-auditLog.filter" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-auditLog.filter">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string representation of a document
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The filter to limit the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/audit-message/mongo/#std-label-audit-action-details-results">
       types of operations
      </a>
      the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/auditing/">
       audit system
      </a>
      records. The option takes a string representation
of a query document of the form:
     </p>
     <script class="structured_data" type="application/ld+json">
      {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{ &lt;field1&gt;: &lt;expression1&gt;, ... }","programmingLanguage":"JavaScript"}
     </script>
     <div class="css-16lmvu9">
      <div class="leafygreen-ui-196mwvg">
       <div class="leafygreen-ui-yzcs8i">
        <pre class="leafygreen-ui-1q4bxgx" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{ &lt;field1&gt;: &lt;expression1&gt;, ... }</td></tr></tbody></table></code></pre>
        <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
         <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
          <div class="leafygreen-ui-xhlipt">
           <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
            <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
            </path>
           </svg>
          </div>
         </button>
        </div>
       </div>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      The
      <code class="leafygreen-ui-1l06pbn">
       &lt;field&gt;
      </code>
      can be
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/audit-message/">
       any field in the audit message
      </a>
      , including fields returned in the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/audit-message/mongo/#std-label-audit-action-details-results">
       param
      </a>
      document. The
      <code class="leafygreen-ui-1l06pbn">
       &lt;expression&gt;
      </code>
      is a
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/operator/query/#std-label-query-selectors">
       query condition expression.
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      To specify an audit filter, enclose the filter document in single
quotes to pass the document as a string.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      To specify the audit filter in a
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-configuration-options" target="_self">
       <span>
        configuration file
       </span>
      </a>
      , you must use the YAML format
of the configuration file.
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Available only in
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.mongodb.com/products/mongodb-enterprise-advanced?tck=docs_server" target="_self">
         <span>
          MongoDB Enterprise
         </span>
        </a>
        and
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://cloud.mongodb.com/user#/atlas/login" target="_self">
         <span>
          MongoDB Atlas
         </span>
        </a>
        .
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      auditLog.format
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-auditLog.format" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-auditLog.format">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The format of the output file for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/auditing/">
       auditing
      </a>
      if
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.destination" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         destination
        </code>
       </span>
      </a>
      is
      <code class="leafygreen-ui-1l06pbn">
       file
      </code>
      . The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.format" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         auditLog.format
        </code>
       </span>
      </a>
      option can have one of the following values:
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width: 15%;"/>
        <col style="width: 50%;"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Value
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Description
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             JSON
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            Output the audit events in JSON format to the file specified
in
            <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.path" target="_self">
             <span>
              <code class="leafygreen-ui-1l06pbn">
               auditLog.path
              </code>
              .
             </span>
            </a>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             BSON
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            Output the audit events in BSON binary format to the file
specified in
            <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.path" target="_self">
             <span>
              <code class="leafygreen-ui-1l06pbn">
               auditLog.path
              </code>
              .
             </span>
            </a>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      Printing audit events to a file in JSON format degrades server
performance more than printing to a file in BSON format.
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Available only in
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.mongodb.com/products/mongodb-enterprise-advanced?tck=docs_server" target="_self">
         <span>
          MongoDB Enterprise
         </span>
        </a>
        and
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://cloud.mongodb.com/user#/atlas/login" target="_self">
         <span>
          MongoDB Atlas
         </span>
        </a>
        .
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      auditLog.localAuditKeyFile
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-auditLog.localAuditKeyFile" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-auditLog.localAuditKeyFile">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <div>
      <p>
       <em>
        New in version 5.3
       </em>
       .
      </p>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      Specifies the path and file name for a local audit key file for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/security-encryption-at-rest/#std-label-security-encryption-at-rest-audit-log">
       audit log encryption.
      </a>
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Only use
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.localAuditKeyFile" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           auditLog.localAuditKeyFile
          </code>
         </span>
        </a>
        for testing because the key is
not secured. To secure the key, use
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.auditEncryptionKeyIdentifier" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           auditLog.auditEncryptionKeyIdentifier
          </code>
         </span>
        </a>
        and an external Key
Management Interoperability Protocol (KMIP) server.
       </p>
      </div>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      You cannot use
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.localAuditKeyFile" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         auditLog.localAuditKeyFile
        </code>
       </span>
      </a>
      and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.auditEncryptionKeyIdentifier" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         auditLog.auditEncryptionKeyIdentifier
        </code>
       </span>
      </a>
      together.
     </p>
     <div class="leafygreen-ui-15mdk4" role="note">
      <h2 class="leafygreen-ui-6n7b7d">
       Note
      </h2>
      <div class="leafygreen-ui-9mycqc">
       <p class="leafygreen-ui-1kp3ins">
        Available only in
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="http://www.mongodb.com/products/mongodb-enterprise-advanced?tck=docs_server" target="_self">
         <span>
          MongoDB Enterprise
         </span>
        </a>
        .
MongoDB Enterprise and Atlas have different configuration
requirements.
       </p>
      </div>
     </div>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      auditLog.path
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-auditLog.path" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-auditLog.path">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The output file for
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/auditing/#std-label-auditing">
       auditing
      </a>
      if
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.destination" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         destination
        </code>
       </span>
      </a>
      has value of
      <code class="leafygreen-ui-1l06pbn">
       file
      </code>
      . The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-auditLog.path" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         auditLog.path
        </code>
       </span>
      </a>
      option can take either a full path name or a relative path name.
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      auditLog.runtimeConfiguration
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-auditLog.runtimeConfiguration" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-auditLog.runtimeConfiguration">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : boolean
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Specifies if a node allows runtime configuration of audit filters
and the auditAuthorizationSuccess variable. If
      <code class="leafygreen-ui-1l06pbn">
       true
      </code>
      the node
can take part in Online Audit Filter Management.
     </p>
    </dd>
   </dl>
   <dl class="setting">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      auditLog.schema
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-auditLog.schema" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-auditLog.schema">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Type
      </em>
      : string
     </p>
     <p class="leafygreen-ui-1kp3ins">
      <em>
       Default
      </em>
      :
      <code class="leafygreen-ui-1l06pbn">
       mongo
      </code>
     </p>
     <div>
      <p>
       <em>
        New in version 8.0
       </em>
       .
      </p>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      Specifies the format used for audit logs. You can specify one of the
following values for
      <code class="leafygreen-ui-1l06pbn">
       auditLog.schema
      </code>
      :
     </p>
     <div class="leafygreen-ui-skkc39" tabindex="0">
      <table class="leafygreen-ui-hr8lsv">
       <colgroup>
        <col style="width: 10%;"/>
        <col style="width: 20%;"/>
       </colgroup>
       <thead class="leafygreen-ui-a9ho40">
        <tr data-testid="leafygreen-ui-header-row">
         <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Value
           </div>
          </div>
         </th>
         <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
          <div class="leafygreen-ui-ui0te9">
           <div>
            Description
           </div>
          </div>
         </th>
        </tr>
       </thead>
       <tbody>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             mongo
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <p class="leafygreen-ui-1kp3ins">
             Logs are written in a format designed by MongoDB.
            </p>
            <p class="leafygreen-ui-1kp3ins">
             For example log messages, see
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/audit-message/mongo/#std-label-event-audit-messages-mongo">
              mongo Schema Audit Messages.
             </a>
            </p>
           </div>
          </div>
         </td>
        </tr>
        <tr class="">
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <code class="leafygreen-ui-1l06pbn">
             OCSF
            </code>
           </div>
          </div>
         </td>
         <td class="leafygreen-ui-1drjk7h">
          <div class="leafygreen-ui-1n4j8xf">
           <div>
            <p class="leafygreen-ui-1kp3ins">
             Logs are written in
             <span class="leafygreen-ui-vm4wms" tabindex="0">
              OCSF
             </span>
             format. This option provides logs in a standardized
format compatible with log processors.
            </p>
            <p class="leafygreen-ui-1kp3ins">
             For example log messages, see
             <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/audit-message/ocsf/#std-label-event-audit-messages-ocsf">
              OCSF Schema Audit Messages.
             </a>
            </p>
           </div>
          </div>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
    </dd>
   </dl>
  </section>
 </section>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   <code class="leafygreen-ui-1l06pbn">
    mongos
   </code>
   -only Options
   <a class="headerlink leafygreen-ui-1kepx47" href="#mongos-only-options" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="mongos-only-options">
    </div>
   </a>
  </h2>
  <script class="structured_data" type="application/ld+json">
   {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"replication:\n   localPingThresholdMs: &lt;int&gt;\n\nsharding:\n   configDB: &lt;string&gt;","programmingLanguage":"YAML"}
  </script>
  <div class="css-16lmvu9">
   <div class="leafygreen-ui-196mwvg">
    <div class="leafygreen-ui-yzcs8i">
     <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">replication:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">localPingThresholdMs:</span> <span class="lg-highlight-string">&lt;int&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><div class="leafygreen-ui-ihxujy"></div></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">sharding:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">configDB:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr></tbody></table></code></pre>
     <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
      <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
       <div class="leafygreen-ui-xhlipt">
        <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
         <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
         </path>
        </svg>
       </div>
      </button>
     </div>
    </div>
   </div>
  </div>
  <dl class="setting">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     replication.localPingThresholdMs
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-replication.localPingThresholdMs" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-replication.localPingThresholdMs">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      Type
     </em>
     : integer
    </p>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      Default
     </em>
     : 15
    </p>
    <p class="leafygreen-ui-1kp3ins">
     The ping time, in milliseconds, that
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     uses
to determine which secondary replica set members to pass read
operations from clients. The default value of
     <code class="leafygreen-ui-1l06pbn">
      15
     </code>
     corresponds to
the default value in all of the client
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/drivers/" target="_self">
      <span>
       drivers.
      </span>
     </a>
    </p>
    <p class="leafygreen-ui-1kp3ins">
     When
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     receives a request that permits reads to
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-secondary">
      secondary
     </a>
     members, the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
      :
     </a>
    </p>
    <ul class="leafygreen-ui-rioki0">
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       Finds the member of the set with the lowest ping time.
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       Constructs a list of replica set members that is within a ping time of
15 milliseconds of the nearest suitable member of the set.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If you specify a value for the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.localPingThresholdMs" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          replication.localPingThresholdMs
         </code>
        </span>
       </a>
       option,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       construct the list of replica members that are
within the latency allowed by this value.
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       Selects a member to read from at random from this list.
      </p>
     </li>
    </ul>
    <p class="leafygreen-ui-1kp3ins">
     The ping time used for a member compared by the
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-replication.localPingThresholdMs" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        replication.localPingThresholdMs
       </code>
      </span>
     </a>
     setting is a
moving average of recent ping times, calculated at most every 10
seconds. As a result, some queries may reach members above the threshold
until the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     recalculates the average.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     See the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/read-preference-mechanics/#std-label-replica-set-read-preference-behavior-member-selection">
      Read Preference for Replica Sets
     </a>
     section of the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/read-preference/#std-label-read-preference">
      read preference
     </a>
     documentation for more information.
    </p>
   </dd>
  </dl>
  <dl class="setting">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     sharding.configDB
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-sharding.configDB" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-sharding.configDB">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      Type
     </em>
     : string
    </p>
    <p class="leafygreen-ui-1kp3ins">
     The
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharded-cluster-config-servers/#std-label-sharding-config-server">
      configuration servers
     </a>
     for the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-sharded-cluster">
      sharded cluster.
     </a>
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Config servers for sharded clusters are
deployed as a
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/replication/">
      replica set
     </a>
     . The
replica set config servers must run the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/wiredtiger/">
      WiredTiger storage engine.
     </a>
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Specify the config server replica set name and the hostname and port of
at least one of the members of the config server replica set.
    </p>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"sharding:\n  configDB: &lt;configreplsetname&gt;/cfg1.example.net:27019, cfg2.example.net:27019,...","programmingLanguage":"JavaScript"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-1b1bvay">
       <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">sharding</span>:</td></tr><tr class=""><td class="leafygreen-ui-7razhx">  <span class="lg-highlight-attr">configDB</span>: &lt;configReplSetName&gt;/cfg1.<span class="lg-highlight-property">example</span>.<span class="lg-highlight-property">net</span>:<span class="lg-highlight-number">27019</span>, cfg2.<span class="lg-highlight-property">example</span>.<span class="lg-highlight-property">net</span>:<span class="lg-highlight-number">27019</span>,...</td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <p class="leafygreen-ui-1kp3ins">
     The
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     instances for the sharded cluster must specify
the same config server replica set name but can specify hostname and
port of different members of the replica set.
    </p>
   </dd>
  </dl>
 </section>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Windows Service Options
   <a class="headerlink leafygreen-ui-1kepx47" href="#windows-service-options" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="windows-service-options">
    </div>
   </a>
  </h2>
  <script class="structured_data" type="application/ld+json">
   {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"processManagement:\n   windowsService:\n      serviceName: &lt;string&gt;\n      displayName: &lt;string&gt;\n      description: &lt;string&gt;\n      serviceUser: &lt;string&gt;\n      servicePassword: &lt;string&gt;","programmingLanguage":"YAML"}
  </script>
  <div class="css-16lmvu9">
   <div class="leafygreen-ui-196mwvg">
    <div class="leafygreen-ui-yzcs8i">
     <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light yaml leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">processManagement:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">windowsService:</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">serviceName:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">displayName:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">description:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">serviceUser:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-attr">servicePassword:</span> <span class="lg-highlight-string">&lt;string&gt;</span></td></tr></tbody></table></code></pre>
     <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
      <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
       <div class="leafygreen-ui-xhlipt">
        <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
         <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
         </path>
        </svg>
       </div>
      </button>
     </div>
    </div>
   </div>
  </div>
  <dl class="setting">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     processManagement.windowsService.serviceName
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-processManagement.windowsService.serviceName" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-processManagement.windowsService.serviceName">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      Type
     </em>
     : string
    </p>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      Default
     </em>
     : MongoDB
    </p>
    <p class="leafygreen-ui-1kp3ins">
     The service name of
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     or
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
     </a>
     when running as a
Windows Service. Use this name with the
     <code class="leafygreen-ui-1l06pbn">
      net start &lt;name&gt;
     </code>
     and
     <code class="leafygreen-ui-1l06pbn">
      net stop &lt;name&gt;
     </code>
     operations.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     You must use
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.windowsService.serviceName" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        processManagement.windowsService.serviceName
       </code>
      </span>
     </a>
     in conjunction with either
the
     <code class="leafygreen-ui-1l06pbn">
      --install
     </code>
     or
     <code class="leafygreen-ui-1l06pbn">
      --remove
     </code>
     option.
    </p>
   </dd>
  </dl>
  <dl class="setting">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     processManagement.windowsService.displayName
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-processManagement.windowsService.displayName" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-processManagement.windowsService.displayName">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      Type
     </em>
     : string
    </p>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      Default
     </em>
     : MongoDB
    </p>
    <p class="leafygreen-ui-1kp3ins">
     The name listed for MongoDB on the Services administrative
application.
    </p>
   </dd>
  </dl>
  <dl class="setting">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     processManagement.windowsService.description
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-processManagement.windowsService.description" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-processManagement.windowsService.description">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      Type
     </em>
     : string
    </p>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      Default
     </em>
     : MongoDB Server
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Run
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     or
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
     </a>
     service description.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     You must use
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.windowsService.description" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        processManagement.windowsService.description
       </code>
      </span>
     </a>
     in conjunction with the
     <code class="leafygreen-ui-1l06pbn">
      --install
     </code>
     option.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     For descriptions that contain spaces, you must enclose the
description in quotes.
    </p>
   </dd>
  </dl>
  <dl class="setting">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     processManagement.windowsService.serviceUser
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-processManagement.windowsService.serviceUser" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-processManagement.windowsService.serviceUser">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      Type
     </em>
     : string
    </p>
    <p class="leafygreen-ui-1kp3ins">
     The
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     or
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
     </a>
     service in the context of a certain user. This
user must have "Log on as a service" privileges.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     You must use
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.windowsService.serviceUser" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        processManagement.windowsService.serviceUser
       </code>
      </span>
     </a>
     in conjunction with the
     <code class="leafygreen-ui-1l06pbn">
      --install
     </code>
     option.
    </p>
   </dd>
  </dl>
  <dl class="setting">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     processManagement.windowsService.servicePassword
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-setting-processManagement.windowsService.servicePassword" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-setting-processManagement.windowsService.servicePassword">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      Type
     </em>
     : string
    </p>
    <p class="leafygreen-ui-1kp3ins">
     The password for
     <code class="leafygreen-ui-1l06pbn">
      &lt;user&gt;
     </code>
     for
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     or
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
      <code class="leafygreen-ui-1l06pbn">
       mongod
      </code>
     </a>
     when running with
the
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.windowsService.serviceUser" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        processManagement.windowsService.serviceUser
       </code>
      </span>
     </a>
     option.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     You must use
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-setting-processManagement.windowsService.servicePassword" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        processManagement.windowsService.servicePassword
       </code>
      </span>
     </a>
     in conjunction with the
     <code class="leafygreen-ui-1l06pbn">
      --install
     </code>
     option.
    </p>
   </dd>
  </dl>
 </section>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Removed MMAPv1 Options
   <a class="headerlink leafygreen-ui-1kepx47" href="#removed-mmapv1-options" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="removed-mmapv1-options">
    </div>
   </a>
  </h2>
  <p class="leafygreen-ui-1kp3ins">
   MongoDB removed the deprecated MMAPv1 storage engine and the MMAPv1-specific
configuration options:
  </p>
  <div class="leafygreen-ui-skkc39" tabindex="0">
   <table class="leafygreen-ui-hr8lsv">
    <colgroup>
     <col style="width: 60%;"/>
     <col style="width: 50%;"/>
    </colgroup>
    <thead class="leafygreen-ui-a9ho40">
     <tr data-testid="leafygreen-ui-header-row">
      <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
       <div class="leafygreen-ui-ui0te9">
        <div>
         Removed Configuration File Setting
        </div>
       </div>
      </th>
      <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
       <div class="leafygreen-ui-ui0te9">
        <div>
         Removed Command-line Option
        </div>
       </div>
      </th>
     </tr>
    </thead>
    <tbody>
     <tr class="leafygreen-ui-15dvrnp">
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          storage.mmapv1.journal.commitIntervalMs
         </code>
        </div>
       </div>
      </td>
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
        </div>
       </div>
      </td>
     </tr>
     <tr class="leafygreen-ui-15dvrnp">
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          storage.mmapv1.journal.debugFlags
         </code>
        </div>
       </div>
      </td>
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          mongod --journalOptions
         </code>
        </div>
       </div>
      </td>
     </tr>
     <tr class="leafygreen-ui-15dvrnp">
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          storage.mmapv1.nsSize
         </code>
        </div>
       </div>
      </td>
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          mongod --nssize
         </code>
        </div>
       </div>
      </td>
     </tr>
     <tr class="leafygreen-ui-15dvrnp">
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          storage.mmapv1.preallocDataFiles
         </code>
        </div>
       </div>
      </td>
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          mongod --noprealloc
         </code>
        </div>
       </div>
      </td>
     </tr>
     <tr class="leafygreen-ui-15dvrnp">
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          storage.mmapv1.quota.enforced
         </code>
        </div>
       </div>
      </td>
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          mongod --quota
         </code>
        </div>
       </div>
      </td>
     </tr>
     <tr class="leafygreen-ui-15dvrnp">
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          storage.mmapv1.quota.maxFilesPerDB
         </code>
        </div>
       </div>
      </td>
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          mongod --quotaFiles
         </code>
        </div>
       </div>
      </td>
     </tr>
     <tr class="leafygreen-ui-15dvrnp">
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          storage.mmapv1.smallFiles
         </code>
        </div>
       </div>
      </td>
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          mongod --smallfiles
         </code>
        </div>
       </div>
      </td>
     </tr>
     <tr class="leafygreen-ui-15dvrnp">
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          storage.repairPath
         </code>
        </div>
       </div>
      </td>
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          mongod --repairpath
         </code>
        </div>
       </div>
      </td>
     </tr>
     <tr class="leafygreen-ui-15dvrnp">
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          replication.secondaryIndexPrefetch
         </code>
        </div>
       </div>
      </td>
      <td class="leafygreen-ui-1drjk7h">
       <div class="leafygreen-ui-1n4j8xf">
        <div>
         <code class="leafygreen-ui-1l06pbn">
          mongod --replIndexPrefetch
         </code>
        </div>
       </div>
      </td>
     </tr>
    </tbody>
   </table>
  </div>
  <p class="leafygreen-ui-1kp3ins">
   For earlier versions of MongoDB, refer to the
   <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/legacy/?site=docs" target="_self">
    <span>
     legacy documentation
    </span>
   </a>
   .
  </p>
 </section>
</section>
