# Add mount to psmdb rep set for auditing

**URL:** <https://forums.percona.com/t/add-mount-to-psmdb-rep-set-for-auditing/36586>\
**Category:** Percona Server for MongoDB\
**Tags:** psmdb-operator\
**Created:** [February 7, 2025, 1:47pm UTC](https://forums.percona.com/t/add-mount-to-psmdb-rep-set-for-auditing/36586 "2025-02-07T13:47:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry\_Smearman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/henry_smearman/32/18339_2.png) [@Henry\_Smearman](https://forums.percona.com/u/Henry_Smearman)\
**Post date:** [February 7, 2025, 1:47pm UTC](https://forums.percona.com/t/add-mount-to-psmdb-rep-set-for-auditing/36586/1 "2025-02-07T13:47:14Z")

</div>

I have psmdb server helm chart ( 1.19.0 ). I am trying to add an additional mount in order to have audit logs write to it. I am not sharding, only using the replica set. Is this allowed? I have tried several methods with no success.

---

<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:** [February 7, 2025, 2:14pm UTC](https://forums.percona.com/t/add-mount-to-psmdb-rep-set-for-auditing/36586/2 "2025-02-07T14:14:09Z")

</div>

Hi @Henry_Smearman,

Unfortunately, as of 1.19.0, it’s not possible to add volume mounts to mongod container.

You can [configure volumes for your sidecars](https://github.com/percona/percona-server-mongodb-operator/blob/main/deploy/cr.yaml#L176-L210) and run something like fluentd to collect audit logs.

Can you tell me more about your use case? Are you worried about disk usage of audit logs?

---

<div class="post-metadata">

**Author:** ![Henry\_Smearman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/henry_smearman/32/18339_2.png) [@Henry\_Smearman](https://forums.percona.com/u/Henry_Smearman)\
**Post date:** [February 7, 2025, 3:10pm UTC](https://forums.percona.com/t/add-mount-to-psmdb-rep-set-for-auditing/36586/3 "2025-02-07T15:10:37Z")

</div>

Hi @Ege_Gunes

Thanks for your reply. We have another process that we are using that will pick up logs, I wanted to create a mount that could be shared between that process and mongod for easier pick up. I have tried to add mounts to a sidecar but so far have not had any luck with that. I can mount the data dir to my sidecar but I am getting an error when trying to create a claim where the metadata is not being recognized. I reached out for that as well [Metadata empty when creating a PVC for sidecar in MongoDB](https://forums.percona.com/t/metadata-empty-when-creating-a-pvc-for-sidecar-in-mongodb/36535)

---

<div class="post-metadata">

**Author:** ![Henry\_Smearman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/henry_smearman/32/18339_2.png) [@Henry\_Smearman](https://forums.percona.com/u/Henry_Smearman)\
**Post date:** [February 10, 2025, 8:07pm UTC](https://forums.percona.com/t/add-mount-to-psmdb-rep-set-for-auditing/36586/4 "2025-02-10T20:07:39Z")

</div>

Hi Again @Ege_Gunes

Im still having an issue with the sidecar PVC mount and found this in the forum – \> [SidecarPVCs Metadata Pruning Issue in Percona MongoDB Operator Deployment](https://forums.percona.com/t/sidecarpvcs-metadata-pruning-issue-in-percona-mongodb-operator-deployment/23077) Has this been fixed in 1.19.0 ? It is the same exact scenerio / problem I am having.
