Do you think that using a MongoDB Json Database to store log files from application is a good idea and why ?
The only advantage for me is the schema abstraction, but i think it’s also a weakness we cannot ensure the integrity of a log file.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Obviously I’m biased (I work on MongoDB) but I think it works very well for logs.
Reasons:
JavaScript. You could have a cron job running nightly which does nice
MapReduce things to your logs.
keep only the latest N KBs/MBs/GBs of logs
I’m not sure what you mean “ensure the integrity of a log file”… do you mean you are worried about not knowing what fields the document you’re pulling out has? If so, I think you’ll find it’s no harder dealing with null fields in a relational database and much more flexible.
See also: the MongoDB blog post on logging.