Hey, I’ve been thinking about using mongo for my project to logging everything but I couldn’t decide that I should really us mongo for logging my data or not. Therefore, I want to ask here and get some experienced people advices.
Firstly, I want to log everything that happens during working. Thus, there’d be a lot of logs, there’d be hundreds of thousands log data. Logs will not be that large in the memory(few fields like date, user etc.)
- Should I use only one collection to log everything or separate every log by their category?
- Should I use expired data? (If it’s possible, I’d like to see logs which are have stayed longer than a year too.)
- Any other suggestion about this topic?