<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:07:01 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-4797] automatically rotate mongo logs on a schedule or size threshold</title>
                <link>https://jira.mongodb.org/browse/SERVER-4797</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Automatic rotation for mongodb.log should be done based on size, and the number of backups retained should be capped at a configurable limit.  Reasonable defaults might be 20MB size and 3 backups.  That way the total disk space used to keep log files will have a configured maximum.&lt;/p&gt;

&lt;p&gt;Suggested example syntax for /etc/mongodb.conf:&lt;br/&gt;
logpath=/var/log/mongo/mongodb.log&lt;br/&gt;
logrotatesize=20M&lt;br/&gt;
logrotatebackups=3&lt;/p&gt;

&lt;p&gt;I have filed this as Major priority because it can impact a running server as a secondary problem.  Due to an unrelated issue my Mongo server started logging the same error message repeatedly and quickly filled up its filesystem.  Had this feature been in place, with size-based rotation and a fixed number of backups, the filesystem would not have filled up.&lt;/p&gt;</description>
                <environment>Unix</environment>
        <key id="29300">SERVER-4797</key>
            <summary>automatically rotate mongo logs on a schedule or size threshold</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="wberry">Will Berry</reporter>
                        <labels>
                            <label>logging</label>
                            <label>polish</label>
                    </labels>
                <created>Fri, 27 Jan 2012 18:23:30 +0000</created>
                <updated>Fri, 31 Jul 2015 17:30:53 +0000</updated>
                            <resolved>Thu, 10 Jul 2014 19:52:54 +0000</resolved>
                                    <version>1.8.4</version>
                                                    <component>Logging</component>
                                        <votes>30</votes>
                                    <watches>26</watches>
                                                                                                                <comments>
                            <comment id="673631" author="mark.benvenuto" created="Mon, 28 Jul 2014 15:26:00 +0000"  >&lt;p&gt;I included information about how to do logrotate on Windows in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7312&quot; title=&quot;Automatic rolling of log files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7312&quot;&gt;&lt;del&gt;SERVER-7312&lt;/del&gt;&lt;/a&gt;. It requires a standalone program to assist in the log rotation.&lt;/p&gt;</comment>
                            <comment id="673342" author="v.sevel@lombardodier.com" created="Mon, 28 Jul 2014 10:11:41 +0000"  >&lt;p&gt;what about windows users?&lt;/p&gt;</comment>
                            <comment id="655178" author="mark.benvenuto" created="Thu, 10 Jul 2014 19:52:30 +0000"  >&lt;p&gt;We have implemented better log rotation behavior to conform with the logrotate&apos;s expectations. We will not be adding logic into the server itself, but will rely on outside programs like logrotate instead. See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4905&quot; title=&quot;logRotate should conform to standard log rotation mechanisms&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4905&quot;&gt;&lt;del&gt;SERVER-4905&lt;/del&gt;&lt;/a&gt; for more information.&lt;/p&gt;</comment>
                            <comment id="242915" author="hanej" created="Thu, 17 Jan 2013 20:55:46 +0000"  >&lt;p&gt;Pipe your logs to cronolog and you can fine tune how the logs are rotated.  This is what we are doing.  This isn&apos;t a replacement for the feature request, but a workaround until it is implemented.&lt;/p&gt;</comment>
                            <comment id="212229" author="scotthernandez" created="Tue, 11 Dec 2012 16:51:28 +0000"  >&lt;p&gt;Abhijeet, can you post a sample of your logs so we can see what is generating so much content? ~3/4GB/day seems like a lot. If you feel the content is private (not for the world to see) you can create a community private jira issue where it will be private to you.&lt;/p&gt;</comment>
                            <comment id="211943" author="ajduke" created="Tue, 11 Dec 2012 09:27:48 +0000"  >&lt;p&gt;This feature is really necessary in production environment where load on Mongo is huge. The log file size becomes almost 5 GB in 7 days. Hence we need to have this feature as we have to restart the service and delete the logs every 2-3 days. Also customer would not agree to perform these steps every 2-3 days. This feature must be implemented because the if we want to trace any issue/replication, it becomes very inconvenient to do it.  &lt;/p&gt;</comment>
                            <comment id="170293" author="v.sevel@lombardodier.com" created="Tue, 2 Oct 2012 12:35:43 +0000"  >&lt;p&gt;we plan in running more than one mongo process per box; each process will cover one or more applications. from an operational standpoint, we are clearly worried about anything happening in one process that could have some effects on another process. whatever the resources being used, we need to be able to box them process by process. on windows we have WSRM for memory and cpu. disk space is typically dealt with log rotation. that is why this ticket is of importance for us.&lt;/p&gt;</comment>
                            <comment id="108637" author="ebbesson" created="Wed, 11 Apr 2012 08:23:26 +0000"  >&lt;p&gt;Also affects Windows Server 2008 environments&lt;/p&gt;</comment>
                            <comment id="108613" author="poserdonut" created="Wed, 11 Apr 2012 06:41:09 +0000"  >&lt;p&gt;The loggin really needs to be looked at, we currently have to pipe our logs to /dev/null since a yield log message fills up our server disk. As much as 20GB of logs can be output in just a couple of hours. &lt;/p&gt;

&lt;p&gt;There are several issues that relate to this:&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3989&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-3989&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4321&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-4321&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4217&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-4217&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1044&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-1044&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4282&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-4282&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Maybe they should all be put into one issue so the votes will portrait the severity of the issue better.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="120345">SERVER-13193</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="30138">SERVER-4905</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="26683">SERVER-4499</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 15 Feb 2012 14:35:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 29 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 29 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ajduke</customfieldvalue>
            <customfieldvalue>hanej</customfieldvalue>
            <customfieldvalue>poserdonut</customfieldvalue>
            <customfieldvalue>ebbesson</customfieldvalue>
            <customfieldvalue>mark.benvenuto@mongodb.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>v.sevel@lombardodier.com</customfieldvalue>
            <customfieldvalue>wberry</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrofgn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrfrfj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4511</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrhy27:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>