# Reduce logging (crVersion: 1.9.0)

**URL:** https://forums.percona.com/t/reduce-logging-crversion-1-9-0/12848
**Category:** Percona Operator for MongoDB
**Created:** [November 3, 2021, 1:57pm UTC](https://forums.percona.com/t/reduce-logging-crversion-1-9-0/12848 "2021-11-03T13:57:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jamoser](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jamoser](https://forums.percona.com/u/jamoser)
#### Post date: [November 3, 2021, 1:57pm UTC](https://forums.percona.com/t/reduce-logging-crversion-1-9-0/12848/1 "2021-11-03T13:57:32Z")

</div>

There is quite some logging going on and for certain envs I want to disable logging.

According to the doc this can be achieved by

replsets.configuration

|  
systemLog:  
quiet: true

But this is not working. What else needs to be done ?

---

<div class="post-metadata">

### Author: ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)
#### Post date: [November 15, 2021, 9:09am UTC](https://forums.percona.com/t/reduce-logging-crversion-1-9-0/12848/2 "2021-11-15T09:09:57Z")

</div>

Hello @jamoser ,

I sense it might not be a problem with the Operator.  
The option is applied correctly.  
As per Mongo docs it is:

Run [`mongos`](https://docs.mongodb.com/manual/reference/program/mongos/#mongodb-binary-bin.mongos) or [`mongod`](https://docs.mongodb.com/manual/reference/program/mongod/#mongodb-binary-bin.mongod) in a quiet mode that attempts to limit the amount of output.

So it attempts to limit, not disabling the docs completely. I’m not 100% sure what does it mean in MongoDB world. Will check it with our Mongo gurus.

---

<div class="post-metadata">

### Author: ![Sergey\_Zelenov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_zelenov/32/12462_2.png) [@Sergey\_Zelenov](https://forums.percona.com/u/Sergey_Zelenov)
#### Post date: [October 31, 2023, 8:13pm UTC](https://forums.percona.com/t/reduce-logging-crversion-1-9-0/12848/3 "2023-10-31T20:13:49Z")

</div>

@jamoser hey, I have the same problem, were you able to solve it? I also came up with this option which seems doesn’t do much - I still see log messages 10-20 times per second

@Sergey_Pronin are you certain that this option is passed to the mongodb? in my configuration for percona server I have the following:

````yaml
psmdb-db:
  secrets:
    users: ***
  replsets:
    - name: rs0
      size: 3
      configuration: |
        systemLog:
          quiet: true
...

but when I connect to deployed db I see the following:

```bash
[direct: mongos] admin> db.adminCommand( { getParameter : 1, 'quiet': 1 } )
{
  quiet: false,
  ok: 1,
  '$clusterTime': {
    ...
  },
  operationTime: Timestamp({ t: 1698784260, i: 1 })
}

````

---

<div class="post-metadata">

### Author: ![jamoser](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jamoser](https://forums.percona.com/u/jamoser)
#### Post date: [November 1, 2023, 2:32pm UTC](https://forums.percona.com/t/reduce-logging-crversion-1-9-0/12848/4 "2023-11-01T14:32:35Z")

</div>

Hi @Sergey_Zelenov … doesn’t really help. We are creating “tons” of log but we push them all in a 1 day log bucket.

But still, they should fix this resp. make it more user friendly.

---

<div class="post-metadata">

### Author: ![Semantic](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/semantic/32/9104_2.png) [@Semantic](https://forums.percona.com/u/Semantic)
#### Post date: [May 20, 2024, 3:34pm UTC](https://forums.percona.com/t/reduce-logging-crversion-1-9-0/12848/5 "2024-05-20T15:34:57Z")

</div>

@Sergey_Zelenov that configuration indeed gets passed to Mongo as part of `/etc/mongodb-config/mongod.conf ` configuration file. Make sure that you do not have a conflicting `configuration` field in your cr.yml that might override that value you are setting like I did ([ref](https://forums.percona.com/t/mongod-configuration/29286/2)).

The thing is that Mongo’s `quiet` mode does not silence the NETWORK spam, and you cannot disable the `network` component from systemLog as it is already set to `0` by default, the least verbose level ([ref](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-systemLog.verbosity)).

It seems to be a Mongo limitation, which has been raised quite a bit and which would require changes to the source code. Considering the Percona operator is behind by a couple majors, it doesn’t seem like there would be a short term solution following that path.

However, I envision it might be possible to effectively do what we want by creating another container you’d pipe the mongo logs to which would be in charge of eliminating the noise, if we cannot update whatever connects to the db without a long-lived connection as I mentioned [here](https://forums.percona.com/t/logs-flooded-with-ssl-messages/15156/9).
