# Mongodb auditing

**URL:** <https://forums.percona.com/t/mongodb-auditing/11635>\
**Category:** Percona Server for MongoDB\
**Created:** [August 2, 2021, 5:11pm UTC](https://forums.percona.com/t/mongodb-auditing/11635 "2021-08-02T17:11:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tropically](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@tropically](https://forums.percona.com/u/tropically)\
**Post date:** [August 2, 2021, 5:11pm UTC](https://forums.percona.com/t/mongodb-auditing/11635/1 "2021-08-02T17:11:27Z")

</div>

Hi  
How does one implement auditing for mongodb on the percona kubernetes install.  
The mongo.conf file under /etc is not writable by non root user?  
How does one get access to that file or is there another location associated with the conf file?

TIA.

---

<div class="post-metadata">

**Author:** ![Ege\_Gunes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ege_gunes/32/4595_2.png) [@Ege\_Gunes](https://forums.percona.com/u/Ege_Gunes)\
**Post date:** [August 4, 2021, 10:58am UTC](https://forums.percona.com/t/mongodb-auditing/11635/2 "2021-08-04T10:58:38Z")

</div>

Hi @tropically ,

You don’t need to edit mongod.conf in the container. There is a section in cr.yaml to configure audit log: [percona-server-mongodb-operator/cr.yaml at main · percona/percona-server-mongodb-operator · GitHub](https://github.com/percona/percona-server-mongodb-operator/blob/main/deploy/cr.yaml#L310-L313)
