<section>
 <h1 class="contains-headerlink leafygreen-ui-41fr9s" weight="medium">
  db.getProfilingStatus()
  <a class="headerlink leafygreen-ui-1kepx47" href="#db.getprofilingstatus--" 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="db.getprofilingstatus--">
   </div>
  </a>
 </h1>
 <dl class="method">
  <dt>
   <code class="leafygreen-ui-1l06pbn">
    db.getProfilingStatus()
   </code>
   <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-method-db.getProfilingStatus" 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-method-db.getProfilingStatus">
    </div>
   </a>
  </dt>
  <dd>
   <table class="css-11h39yh e1nex8bq0">
    <colgroup>
     <col class="field-name"/>
     <col class="field-body"/>
    </colgroup>
    <tbody>
     <tr class="css-x8snli">
      <th>
       Returns
       <!-- -->
       :
      </th>
      <td>
       The current
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/profile/#mongodb-dbcommand-dbcmd.profile">
        <code class="leafygreen-ui-1l06pbn">
         profile
        </code>
       </a>
       level,
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/configuration-options/#mongodb-setting-operationProfiling.slowOpThresholdMs">
        <code class="leafygreen-ui-1l06pbn">
         slowOpThresholdMs
        </code>
       </a>
       setting,
and
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/configuration-options/#mongodb-setting-operationProfiling.slowOpSampleRate">
        <code class="leafygreen-ui-1l06pbn">
         slowOpSampleRate
        </code>
       </a>
       setting.
       <p class="leafygreen-ui-1kp3ins">
        You can set a
        <code class="leafygreen-ui-1l06pbn">
         filter
        </code>
        to control which operations are logged by
the profiler. When set, any configured filters are also returned by
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-method-db.getProfilingStatus" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           db.getProfilingStatus()
          </code>
         </span>
        </a>
        , along with a
        <code class="leafygreen-ui-1l06pbn">
         note
        </code>
        explaining filter behavior.
       </p>
       <p class="leafygreen-ui-1kp3ins">
        You can set the profiling filter with either:
       </p>
       <ul class="leafygreen-ui-rioki0">
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          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>
          shell method, or
         </p>
        </li>
        <li class="leafygreen-ui-d7p7b6">
         <p class="leafygreen-ui-1kp3ins">
          the
          <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/configuration-options/#mongodb-setting-operationProfiling.filter">
           <code class="leafygreen-ui-1l06pbn">
            operationProfiling.filter
           </code>
          </a>
          configuration file option.
         </p>
        </li>
       </ul>
      </td>
     </tr>
    </tbody>
   </table>
  </dd>
 </dl>
</section>
