<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:40:52 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-57056] Syslog severity set incorrectly for INFO messages</title>
                <link>https://jira.mongodb.org/browse/SERVER-57056</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The default syslog configuration is to only output severity info or higher to /var/log/messages. I expect this would by default output slow queries as well. However this is not happening. After investigation with journalctl -p X, we discovered that slow messages have a log level of INFO, but are posted to syslog with a severity of DEBUG (7). As a result, such messages do not appear in /var/log/messages.&lt;/p&gt;

&lt;p&gt;The documentation still mentions all messages being printed with severity info, which is not correct: &lt;a href=&quot;https://docs.mongodb.com/manual/reference/configuration-options/#mongodb-setting-auditLog.destination:&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/configuration-options/#mongodb-setting-auditLog.destination:&lt;/a&gt; &quot;Audit messages have a syslog severity level of info and a facility level of user.&quot;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1730910">SERVER-57056</key>
            <summary>Syslog severity set incorrectly for INFO messages</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="13201">Fixed</resolution>
                                        <assignee username="gabriel.marks@mongodb.com">Gabriel Marks</assignee>
                                    <reporter username="bhaarsma@cloudbilling.nl">Bouke Haarsma</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 May 2021 11:38:10 +0000</created>
                <updated>Sun, 29 Oct 2023 21:53:21 +0000</updated>
                            <resolved>Wed, 12 Apr 2023 22:06:27 +0000</resolved>
                                    <version>4.4.6</version>
                                    <fixVersion>7.0.0-rc0</fixVersion>
                    <fixVersion>7.1.0-rc0</fixVersion>
                    <fixVersion>6.0.6</fixVersion>
                    <fixVersion>4.4.22</fixVersion>
                    <fixVersion>5.0.18</fixVersion>
                                                        <votes>1</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="5354140" author="xgen-internal-githook" created="Mon, 17 Apr 2023 22:27:06 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Gabriel Marks&apos;, &apos;email&apos;: &apos;gabriel.marks@mongodb.com&apos;, &apos;username&apos;: &apos;marksg07&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57056&quot; title=&quot;Syslog severity set incorrectly for INFO messages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57056&quot;&gt;&lt;del&gt;SERVER-57056&lt;/del&gt;&lt;/a&gt; Give LogSeverity::Log() messages syslog severity level info&lt;br/&gt;
Branch: v7.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e4cec5692449ba0deb2c13276bd5c8c63531fed0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e4cec5692449ba0deb2c13276bd5c8c63531fed0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5354134" author="xgen-internal-githook" created="Mon, 17 Apr 2023 22:24:45 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Gabriel Marks&apos;, &apos;email&apos;: &apos;gabriel.marks@mongodb.com&apos;, &apos;username&apos;: &apos;marksg07&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57056&quot; title=&quot;Syslog severity set incorrectly for INFO messages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57056&quot;&gt;&lt;del&gt;SERVER-57056&lt;/del&gt;&lt;/a&gt; Give LogSeverity::Log() messages syslog severity level info&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7a07d46d278483f0d33305296d04fc9d7cbe3245&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7a07d46d278483f0d33305296d04fc9d7cbe3245&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5354121" author="xgen-internal-githook" created="Mon, 17 Apr 2023 22:19:07 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Gabriel Marks&apos;, &apos;email&apos;: &apos;gabriel.marks@mongodb.com&apos;, &apos;username&apos;: &apos;marksg07&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57056&quot; title=&quot;Syslog severity set incorrectly for INFO messages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57056&quot;&gt;&lt;del&gt;SERVER-57056&lt;/del&gt;&lt;/a&gt; Give LogSeverity::Log() messages syslog severity level info&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b286b30653fccd7bc4ab491843abbd966fcb839a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b286b30653fccd7bc4ab491843abbd966fcb839a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5354099" author="xgen-internal-githook" created="Mon, 17 Apr 2023 22:08:30 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Gabriel Marks&apos;, &apos;email&apos;: &apos;gabriel.marks@mongodb.com&apos;, &apos;username&apos;: &apos;marksg07&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57056&quot; title=&quot;Syslog severity set incorrectly for INFO messages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57056&quot;&gt;&lt;del&gt;SERVER-57056&lt;/del&gt;&lt;/a&gt; Give LogSeverity::Log() messages syslog severity level info&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 851cfd2d0aaaf3ae877608236d1aad10eedd7f9e)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7cb7027771c691423dddcad8d984a9c9cae8a2b0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7cb7027771c691423dddcad8d984a9c9cae8a2b0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5342914" author="xgen-internal-githook" created="Wed, 12 Apr 2023 21:44:07 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Gabriel Marks&apos;, &apos;email&apos;: &apos;gabriel.marks@mongodb.com&apos;, &apos;username&apos;: &apos;marksg07&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57056&quot; title=&quot;Syslog severity set incorrectly for INFO messages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57056&quot;&gt;&lt;del&gt;SERVER-57056&lt;/del&gt;&lt;/a&gt; Give LogSeverity::Log() messages syslog severity level info&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/851cfd2d0aaaf3ae877608236d1aad10eedd7f9e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/851cfd2d0aaaf3ae877608236d1aad10eedd7f9e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5324010" author="JIRAUSER1253409" created="Tue, 4 Apr 2023 17:11:42 +0000"  >&lt;p&gt;In my investigation so far, I&apos;ve noticed that while &lt;tt&gt;LOGV2_INFO(...)&lt;/tt&gt; and &lt;tt&gt;LOGV2(...)&lt;/tt&gt; both appear to have the same log level of {&lt;tt&gt;&quot;s&quot;: &quot;I&quot;&lt;/tt&gt;}, they actually have different levels under the hood (&lt;tt&gt;LogSeverity::Log()&lt;/tt&gt; = 0, &lt;tt&gt;LogSeverity::Info()&lt;/tt&gt; = -1). Logs with &lt;tt&gt;LogSeverity::Info()&lt;/tt&gt; which are output by &lt;tt&gt;LOGV2_INFO(...)&lt;/tt&gt; have the correct syslog severity level of Informational, but those with &lt;tt&gt;LogSeverity::Log()&lt;/tt&gt; which are output by &lt;tt&gt;LOGV2(...)&lt;/tt&gt; get the syslog severity level Debug. This inconsistency is likely what needs to be addressed here. I was able to replicate this in master.&lt;/p&gt;</comment>
                            <comment id="3868944" author="JIRAUSER1257066" created="Wed, 9 Jun 2021 16:30:30 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bhaarsma%40cloudbilling.nl&quot; class=&quot;user-hover&quot; rel=&quot;bhaarsma@cloudbilling.nl&quot;&gt;bhaarsma@cloudbilling.nl&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for clarifying that you were referring to outputting mongod log lines to syslog. It&apos;s a possible discrepancy mongod server logs with severity level of Informational are missing when viewing syslog with priority level of INFO. I&apos;ll pass this along to the appropriate team for further investigation.&lt;/p&gt;

&lt;p&gt;Best,&lt;br/&gt;
Edwin&lt;/p&gt;</comment>
                            <comment id="3867300" author="JIRAUSER1254848" created="Tue, 8 Jun 2021 20:10:36 +0000"  >&lt;p&gt;Hi Edwin,&lt;/p&gt;

&lt;p&gt;Re-reading my issue and the documentation I quoted, I might&apos;ve conflated systemLog and auditLog. My issue is with output written to systemLog: the severity from the source (Mongo) doesn&apos;t seem to be mapped correctly with the target (syslog). Under the default settings of CentOS syslog will only log severity INFO or higher. For our use-case this is fine, as the log output from Mongo that we&apos;re interested in is also INFO (or higher). However with the default setup, we didn&apos;t see the messages we expected to see. After investigation we discovered that Mongo was writing INFO messages with a severity of DEBUG. This is unexpected behaviour.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Bouke&lt;/p&gt;</comment>
                            <comment id="3862812" author="JIRAUSER1257066" created="Mon, 7 Jun 2021 16:28:23 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bhaarsma%40cloudbilling.nl&quot; class=&quot;user-hover&quot; rel=&quot;bhaarsma@cloudbilling.nl&quot;&gt;bhaarsma@cloudbilling.nl&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I&apos;m unable to find the slow query audit logs in the syslog and I&apos;m unable reproduce this behavior. I am also unable to find under which &lt;a href=&quot;https://docs.mongodb.com/manual/reference/audit-message/#std-label-audit-action-details-results&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;action type&lt;/a&gt; a slow query audit log message should show up as.&lt;/p&gt;

&lt;p&gt;To help further investigate, can you provide the following:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;The slow query log line found in your mongod logs&lt;/li&gt;
	&lt;li&gt;The corresponding slow query audit log line with log level of DEBUG(7) as described in your description&lt;/li&gt;
	&lt;li&gt;Your complete &lt;a href=&quot;https://docs.mongodb.com/manual/reference/configuration-options/#auditlog-options&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;auditLog options&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Best,&lt;br/&gt;
Edwin&lt;/p&gt;</comment>
                            <comment id="3790812" author="JIRAUSER1254848" created="Wed, 19 May 2021 11:39:31 +0000"  >&lt;p&gt;We&apos;re running CentOS Linux release 7.8.2003 (Core).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                                <inwardlinks description="backports">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25129"><![CDATA[Server Security]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25578"><![CDATA[v7.0]]></customfieldvalue>
    <customfieldvalue key="23470"><![CDATA[v6.0]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5006R00001s8bUgQAI]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 7 Jun 2021 16:28:23 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        42 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            42 weeks, 2 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>bhaarsma@cloudbilling.nl</customfieldvalue>
            <customfieldvalue>edwin.zhou@mongodb.com</customfieldvalue>
            <customfieldvalue>gabriel.marks@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzdcgn:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4971">Security 2021-06-28</customfieldvalue>
    <customfieldvalue id="6923">Security 2023-04-17</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>
                                    <customfieldvalue><![CDATA[edwin.zhou@mongodb.com]]></customfieldvalue>
    

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

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