[SERVER-8909] MongoDB- Customzieable log size and growth strategy Created: 08/Mar/13 Updated: 10/Dec/14 Resolved: 01/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | jameszhou | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Comments |
| Comment by jameszhou [ 11/Jul/13 ] |
|
Thanks all guys for your greate suggestions |
| Comment by Stennie Steneker (Inactive) [ 01/Apr/13 ] |
|
Hi, Some additional options to consider if you are on a Linux system:
Cheers, |
| Comment by hari.khalsa@10gen.com [ 08/Mar/13 ] |
|
Hi! You can limit the size of the oplog with --oplogSize: You can also specify --quiet to limit the amount of logging. To specify where you want the log files, use --logpath: There is a logRotate command that may do what you want: |
| Comment by jameszhou [ 08/Mar/13 ] |
|
I have been running MongoDB for some time. There brings about a issue deserved to be paid. My customzie log strategy like below: 1) Limit a maximum size of 50MB for each log file 2) Limit a total of 7 log files under the specified log path How can I implement such things in MongoDB? Thanks In Advance! |