Hello everyone,
I am working on a project in which I have used mongoDb as database,
I have setup 3 replicas on mongodb,
My question is:-
I am facing a lot of mongoDb logs in the log file of mongodb, and I want to minimize the logs, to which verbosity level I should have to set the logs?
My current setting for logs in config file is:-
destination: file
logAppend: true
path: /data/log/mongodb/mongod.log
component:
accessControl:
verbosity: 1
command:
verbosity: 1
# COMMENT some component verbosity settings omitted for brevity
replication:
verbosity: 1
election:
verbosity: 1
heartbeats:
verbosity: 1
initialSync:
verbosity: 1
rollback:
verbosity: 1
storage:
verbosity: 1
journal:
verbosity: 1
recovery:
verbosity: 1
write:
verbosity: 1```
Please suggest me the log verbosity level, by which I will have minimum logs.
And one more question, Is more logs make any impact on mongoDb performance.
e.g. If my mongoDb logs file will goes upto 30GB of size in a day, will it impact on mongodb performance?