How to save MongoDB systemLog into a file with Percona MongoDB operator?

Hello Peers,

I am evaluating the Percona operator for MongoDB. For my POC, I would like to configure mongodb path of the log file to which mongod or mongos should send all diagnostic logging information, rather than having to check logs through kubectl logs my-cluster-name-rs0-0 -c mongod

I am referring Custom Resource Option page, however, DO NOT find any options to set something like below:

systemLog:
   destination: file
   path: "/var/log/mongo/mongod.log"
   logAppend: true

When I tried passing on the configuration as follows, pod started to crash.

- name: rs0
    size: 3
    configuration: |
      systemLog:
        verbosity: 1
         destination: file
         path: "/var/log/mongo/mongod.log"

I would like to know if this operator even support these configuration options ?

Hi, it is not supported. In the container world usually you expect logs to be sent to stdout, where a log collection agent can get them and send to some centralized service.