<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:06:48 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-4729] Query params are no longer included in slow query hits to MongoDB logs</title>
                <link>https://jira.mongodb.org/browse/SERVER-4729</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In 1.8.x and previous versions of MongoDB, when a slow query hit the logs, it would show the query, the time the query took and, most importantly, the params that were used in the query. This was great for quickly identifying issues without having to go through the process of turning on and tuning the profiling feature.&lt;/p&gt;

&lt;p&gt;Also, in times of the database being busy, it is great to look at things from an outside perspective (logs vs. auth&apos;ing into the db)&lt;/p&gt;

&lt;p&gt;For example...&lt;/p&gt;

&lt;p&gt;In 1.8.x the query may look like:&lt;br/&gt;
Fri Jan 20 05:48:19 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1923&amp;#93;&lt;/span&gt; query staging.addon.stats{data_size: {$gt: 500.0 }} nscanned:4485 reslen:20 2131ms&lt;/p&gt;

&lt;p&gt;In 2.0.2 the query looks like:&lt;br/&gt;
Fri Jan 20 06:01:28 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn22205&amp;#93;&lt;/span&gt; query staging.addon.stats nscanned:4485 reslen:20 2131ms&lt;/p&gt;

&lt;p&gt;In testing, we had to move our file config settings on the MongoDB instance to vvv=true to get the details to appear in the logs. Of course, based on our tests on that verbosity level, all queries and their details hit the logs. So this is not optimal. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Can these params be added back to the logs?&lt;/p&gt;

&lt;p&gt;Jason&lt;/p&gt;
</description>
                <environment>Ubuntu Linux 11.04/.10</environment>
        <key id="28725">SERVER-4729</key>
            <summary>Query params are no longer included in slow query hits to MongoDB logs</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="9">Done</resolution>
                                        <assignee username="brandon">Brandon Diamond</assignee>
                                    <reporter username="jasonmccay">Jason McCay</reporter>
                        <labels>
                            <label>logging</label>
                    </labels>
                <created>Fri, 20 Jan 2012 06:40:25 +0000</created>
                <updated>Mon, 11 Jul 2016 18:32:18 +0000</updated>
                            <resolved>Fri, 2 Mar 2012 21:04:01 +0000</resolved>
                                    <version>2.0.2</version>
                                    <fixVersion>2.0.4</fixVersion>
                    <fixVersion>2.1.1</fixVersion>
                                    <component>Logging</component>
                                        <votes>3</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="95137" author="auto" created="Mon, 5 Mar 2012 00:53:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4729&quot; title=&quot;Query params are no longer included in slow query hits to MongoDB logs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4729&quot;&gt;&lt;del&gt;SERVER-4729&lt;/del&gt;&lt;/a&gt;: log slow queries + improved test&lt;br/&gt;
Branch: v2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5899a6daa5170289b9db04a41670de7677acd03f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5899a6daa5170289b9db04a41670de7677acd03f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="86894" author="auto" created="Thu, 9 Feb 2012 15:27:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4729&quot; title=&quot;Query params are no longer included in slow query hits to MongoDB logs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4729&quot;&gt;&lt;del&gt;SERVER-4729&lt;/del&gt;&lt;/a&gt;: log slow queries + improved test&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/19bf4dbd9d632aaf3c91792e11ef6782f22f09c9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/19bf4dbd9d632aaf3c91792e11ef6782f22f09c9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="86207" author="auto" created="Tue, 7 Feb 2012 19:47:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;astaple&apos;, u&apos;name&apos;: u&apos;Aaron&apos;, u&apos;email&apos;: u&apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4729&quot; title=&quot;Query params are no longer included in slow query hits to MongoDB logs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4729&quot;&gt;&lt;del&gt;SERVER-4729&lt;/del&gt;&lt;/a&gt;: Ensure query logged when slow&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit a950ba5fc7e48a92120ac94dff16c0d2de657285.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f0e4452fdf583c321770d721c726d5d78e832ea5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f0e4452fdf583c321770d721c726d5d78e832ea5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="85891" author="auto" created="Mon, 6 Feb 2012 23:37:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4729&quot; title=&quot;Query params are no longer included in slow query hits to MongoDB logs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4729&quot;&gt;&lt;del&gt;SERVER-4729&lt;/del&gt;&lt;/a&gt;: Ensure query logged when slow&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a950ba5fc7e48a92120ac94dff16c0d2de657285&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a950ba5fc7e48a92120ac94dff16c0d2de657285&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 31 Jan 2012 18:09:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 50 weeks, 3 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>
                            11 years, 50 weeks, 3 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>brandon</customfieldvalue>
            <customfieldvalue>jasonmccay</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrogb3:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8937</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></customfieldvalue>

                        </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|ht0rof:</customfieldvalue>

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