Mongodb Logs flood












1















I am starting to use Mongodb to storage my data, and when I started the service, I am getting a log flood, I want to turn off this log saves, I don't mind if I do not have any kind of logs, it is development environment and need to do that, because my log file is growing more than 30gb by 2 or 3 days.



I've tried to change quiet to true as below, but with no success.



root@master:~# cat /etc/mongod.conf 
# mongod.conf

# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/

# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:

# where to write logging data.
systemLog:
verbosity: 0
destination: file
logAppend: true

###### HERE ######
quiet: true

path: /var/log/mongodb/mongod.log
# path: /dev/null
component:
accessControl:
verbosity: 1
command:
verbosity: 1


Any idea how to get a clean logs?? could be a logs with nothing.



Thank you!!










share|improve this question







New contributor




Oracy Martos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Can you edit your question to include some examples of the excessive log entries you are trying to suppress as well as your versions of MongoDB and O/S? The quiet config option should reduce logging for connection and replication events, but does not affect other diagnostic logging like slow queries. You probably don't want to completely ignore logs as there may be some useful information for development. There are different options depending on your MongoDB & O/S versions.

    – Stennie
    Jan 7 at 19:45











  • It is too big, I take some lines and paste on pastebin, follow the link: pastebin.com/uXRsFm58

    – Oracy Martos
    Jan 7 at 19:53











  • Thanks .. just needed some examples of the log lines. The "end connection" messages should be suppressed with quiet; I believe the COMMAND messages are appearing because you have set command verbosity to 1 in your config. Try commenting out or removing your verbosity options. What are your specific versions of MongoDB server and O/S?

    – Stennie
    Jan 7 at 19:59











  • Thank you for your help, distmod: debian92 O/S, and mongodb: 4.0.5

    – Oracy Martos
    Jan 7 at 20:02
















1















I am starting to use Mongodb to storage my data, and when I started the service, I am getting a log flood, I want to turn off this log saves, I don't mind if I do not have any kind of logs, it is development environment and need to do that, because my log file is growing more than 30gb by 2 or 3 days.



I've tried to change quiet to true as below, but with no success.



root@master:~# cat /etc/mongod.conf 
# mongod.conf

# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/

# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:

# where to write logging data.
systemLog:
verbosity: 0
destination: file
logAppend: true

###### HERE ######
quiet: true

path: /var/log/mongodb/mongod.log
# path: /dev/null
component:
accessControl:
verbosity: 1
command:
verbosity: 1


Any idea how to get a clean logs?? could be a logs with nothing.



Thank you!!










share|improve this question







New contributor




Oracy Martos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Can you edit your question to include some examples of the excessive log entries you are trying to suppress as well as your versions of MongoDB and O/S? The quiet config option should reduce logging for connection and replication events, but does not affect other diagnostic logging like slow queries. You probably don't want to completely ignore logs as there may be some useful information for development. There are different options depending on your MongoDB & O/S versions.

    – Stennie
    Jan 7 at 19:45











  • It is too big, I take some lines and paste on pastebin, follow the link: pastebin.com/uXRsFm58

    – Oracy Martos
    Jan 7 at 19:53











  • Thanks .. just needed some examples of the log lines. The "end connection" messages should be suppressed with quiet; I believe the COMMAND messages are appearing because you have set command verbosity to 1 in your config. Try commenting out or removing your verbosity options. What are your specific versions of MongoDB server and O/S?

    – Stennie
    Jan 7 at 19:59











  • Thank you for your help, distmod: debian92 O/S, and mongodb: 4.0.5

    – Oracy Martos
    Jan 7 at 20:02














1












1








1








I am starting to use Mongodb to storage my data, and when I started the service, I am getting a log flood, I want to turn off this log saves, I don't mind if I do not have any kind of logs, it is development environment and need to do that, because my log file is growing more than 30gb by 2 or 3 days.



I've tried to change quiet to true as below, but with no success.



root@master:~# cat /etc/mongod.conf 
# mongod.conf

# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/

# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:

# where to write logging data.
systemLog:
verbosity: 0
destination: file
logAppend: true

###### HERE ######
quiet: true

path: /var/log/mongodb/mongod.log
# path: /dev/null
component:
accessControl:
verbosity: 1
command:
verbosity: 1


Any idea how to get a clean logs?? could be a logs with nothing.



Thank you!!










share|improve this question







New contributor




Oracy Martos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I am starting to use Mongodb to storage my data, and when I started the service, I am getting a log flood, I want to turn off this log saves, I don't mind if I do not have any kind of logs, it is development environment and need to do that, because my log file is growing more than 30gb by 2 or 3 days.



I've tried to change quiet to true as below, but with no success.



root@master:~# cat /etc/mongod.conf 
# mongod.conf

# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/

# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:

# where to write logging data.
systemLog:
verbosity: 0
destination: file
logAppend: true

###### HERE ######
quiet: true

path: /var/log/mongodb/mongod.log
# path: /dev/null
component:
accessControl:
verbosity: 1
command:
verbosity: 1


Any idea how to get a clean logs?? could be a logs with nothing.



Thank you!!







node.js mongodb






share|improve this question







New contributor




Oracy Martos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Oracy Martos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Oracy Martos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Jan 7 at 19:13









Oracy MartosOracy Martos

62




62




New contributor




Oracy Martos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Oracy Martos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Oracy Martos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Can you edit your question to include some examples of the excessive log entries you are trying to suppress as well as your versions of MongoDB and O/S? The quiet config option should reduce logging for connection and replication events, but does not affect other diagnostic logging like slow queries. You probably don't want to completely ignore logs as there may be some useful information for development. There are different options depending on your MongoDB & O/S versions.

    – Stennie
    Jan 7 at 19:45











  • It is too big, I take some lines and paste on pastebin, follow the link: pastebin.com/uXRsFm58

    – Oracy Martos
    Jan 7 at 19:53











  • Thanks .. just needed some examples of the log lines. The "end connection" messages should be suppressed with quiet; I believe the COMMAND messages are appearing because you have set command verbosity to 1 in your config. Try commenting out or removing your verbosity options. What are your specific versions of MongoDB server and O/S?

    – Stennie
    Jan 7 at 19:59











  • Thank you for your help, distmod: debian92 O/S, and mongodb: 4.0.5

    – Oracy Martos
    Jan 7 at 20:02



















  • Can you edit your question to include some examples of the excessive log entries you are trying to suppress as well as your versions of MongoDB and O/S? The quiet config option should reduce logging for connection and replication events, but does not affect other diagnostic logging like slow queries. You probably don't want to completely ignore logs as there may be some useful information for development. There are different options depending on your MongoDB & O/S versions.

    – Stennie
    Jan 7 at 19:45











  • It is too big, I take some lines and paste on pastebin, follow the link: pastebin.com/uXRsFm58

    – Oracy Martos
    Jan 7 at 19:53











  • Thanks .. just needed some examples of the log lines. The "end connection" messages should be suppressed with quiet; I believe the COMMAND messages are appearing because you have set command verbosity to 1 in your config. Try commenting out or removing your verbosity options. What are your specific versions of MongoDB server and O/S?

    – Stennie
    Jan 7 at 19:59











  • Thank you for your help, distmod: debian92 O/S, and mongodb: 4.0.5

    – Oracy Martos
    Jan 7 at 20:02

















Can you edit your question to include some examples of the excessive log entries you are trying to suppress as well as your versions of MongoDB and O/S? The quiet config option should reduce logging for connection and replication events, but does not affect other diagnostic logging like slow queries. You probably don't want to completely ignore logs as there may be some useful information for development. There are different options depending on your MongoDB & O/S versions.

– Stennie
Jan 7 at 19:45





Can you edit your question to include some examples of the excessive log entries you are trying to suppress as well as your versions of MongoDB and O/S? The quiet config option should reduce logging for connection and replication events, but does not affect other diagnostic logging like slow queries. You probably don't want to completely ignore logs as there may be some useful information for development. There are different options depending on your MongoDB & O/S versions.

– Stennie
Jan 7 at 19:45













It is too big, I take some lines and paste on pastebin, follow the link: pastebin.com/uXRsFm58

– Oracy Martos
Jan 7 at 19:53





It is too big, I take some lines and paste on pastebin, follow the link: pastebin.com/uXRsFm58

– Oracy Martos
Jan 7 at 19:53













Thanks .. just needed some examples of the log lines. The "end connection" messages should be suppressed with quiet; I believe the COMMAND messages are appearing because you have set command verbosity to 1 in your config. Try commenting out or removing your verbosity options. What are your specific versions of MongoDB server and O/S?

– Stennie
Jan 7 at 19:59





Thanks .. just needed some examples of the log lines. The "end connection" messages should be suppressed with quiet; I believe the COMMAND messages are appearing because you have set command verbosity to 1 in your config. Try commenting out or removing your verbosity options. What are your specific versions of MongoDB server and O/S?

– Stennie
Jan 7 at 19:59













Thank you for your help, distmod: debian92 O/S, and mongodb: 4.0.5

– Oracy Martos
Jan 7 at 20:02





Thank you for your help, distmod: debian92 O/S, and mongodb: 4.0.5

– Oracy Martos
Jan 7 at 20:02










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Oracy Martos is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1391613%2fmongodb-logs-flood%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Oracy Martos is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Oracy Martos is a new contributor. Be nice, and check out our Code of Conduct.













Oracy Martos is a new contributor. Be nice, and check out our Code of Conduct.












Oracy Martos is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1391613%2fmongodb-logs-flood%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

Touch on Surface Book