<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:23:31 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-50768] getLog: rs missing in 4.4 without documented change</title>
                <link>https://jira.mongodb.org/browse/SERVER-50768</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We routinely use this information in a dashboard to help us see replicaset changes only without needing the entirety of months of data&lt;/p&gt;

&lt;p&gt;Running&#160;db.adminCommand({getLog: &quot;rs&quot;}) on 4.4 returns an error as there is no RamLog for replicaset information.&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The new JSON format started in 4.4, but did not bring along with it the replicaset log. While documentation about the getLog did change for 4.2, the &quot;breaking changes&quot; list did not include any information that would suggest an exception to be thrown when people requesting this, (assuming they had previously been requesting it, as we do)&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1462809">SERVER-50768</key>
            <summary>getLog: rs missing in 4.4 without documented change</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="evin.roesle@mongodb.com">Evin Roesle</assignee>
                                    <reporter username="chad@onspring.com">Chad Kreimendahl</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Sep 2020 02:00:42 +0000</created>
                <updated>Wed, 22 Jun 2022 18:01:06 +0000</updated>
                            <resolved>Fri, 30 Oct 2020 22:08:45 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="3470303" author="evin.roesle" created="Fri, 30 Oct 2020 22:08:45 +0000"  >&lt;p&gt;Closing this ticket as the &lt;a href=&quot;https://docs.mongodb.com/manual/release-notes/4.4-compatibility/#removal-of-rs-getlog-value&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;documentation&lt;/a&gt; has been updated to reflect the change. Users are able to filter the logs by component to find specific logs as mentioned in previous comments.&lt;/p&gt;</comment>
                            <comment id="3467194" author="andrew.feierabend" created="Wed, 28 Oct 2020 21:05:55 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=chad%40onspring.com&quot; class=&quot;user-hover&quot; rel=&quot;chad@onspring.com&quot;&gt;chad@onspring.com&lt;/a&gt;, &lt;/p&gt;

&lt;p&gt;The following might be what you&apos;re looking for:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;mongo --quiet --eval &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;db.adminCommand( { getLog:&apos;global&apos;} ).log.forEach(x =&amp;gt; {print(x)})&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; | jq -c &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;. | select(.c==&quot;REPL&quot;)&apos;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;The &lt;tt&gt;mongo --eval&lt;/tt&gt; portion of the command runs &lt;tt&gt;getLog&lt;/tt&gt; and pulls out the resulting &lt;tt&gt;log&lt;/tt&gt; array in a manner that can be neatly passed to &lt;tt&gt;jq&lt;/tt&gt;, and then the &lt;tt&gt;jq&lt;/tt&gt; portion limits the results to only those log messages of &lt;a href=&quot;https://docs.mongodb.com/manual/reference/log-messages/#components&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;component&lt;/a&gt; &lt;b&gt;REPL&lt;/b&gt;.  Some additional examples of using &lt;tt&gt;jq&lt;/tt&gt; are available &lt;a href=&quot;https://docs.mongodb.com/manual/reference/log-messages/#log-parsing-examples&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; (you can use the &lt;tt&gt;jq&lt;/tt&gt; portion of each example with the &lt;tt&gt;mongo --eval&lt;/tt&gt; method above).&lt;/p&gt;

&lt;p&gt;We&apos;re updating our docs shortly to draw more attention to the removal of &lt;tt&gt;rs&lt;/tt&gt; as a valid &lt;tt&gt;getLog&lt;/tt&gt; value with v4.4, and I&apos;ll add a note to the &lt;tt&gt;getLog&lt;/tt&gt; documentation to provide notice of this method of parsing the output as well &amp;#8211; thank you for raising this ticket!&lt;/p&gt;

&lt;p&gt;Let me know how the above works for you. Hope this helps!&lt;/p&gt;</comment>
                            <comment id="3465590" author="JIRAUSER1269871" created="Tue, 27 Oct 2020 23:08:17 +0000"  >&lt;p&gt;Yeah that&apos;s not going to help us. We were rendering all of the replica set change notifications onto a dashboard where we monitor the status of all of our internal stuff. &lt;/p&gt;

&lt;p&gt;We don&apos;t have access to the file system on which it resides in order to pull that off as they are entirely different machines&lt;/p&gt;</comment>
                            <comment id="3465235" author="evin.roesle" created="Tue, 27 Oct 2020 18:42:57 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=chad%40onspring.com&quot; class=&quot;user-hover&quot; rel=&quot;chad@onspring.com&quot;&gt;chad@onspring.com&lt;/a&gt;, This is correct. getLog : rs is no longer available since we label each log with components now and were not maintaining the rs tags. &lt;/p&gt;

&lt;p&gt;Filtering the logs is the best way to see the relevant logs. We also have other components that you can filter by outside of the REPL component. You can see the different components &lt;a href=&quot;https://docs.mongodb.com/manual/reference/log-messages/#components&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; in our documentation. &lt;/p&gt;</comment>
                            <comment id="3465164" author="JIRAUSER1269871" created="Tue, 27 Oct 2020 18:08:10 +0000"  >&lt;p&gt;Does that mean it&apos;s no longer available in the ramlog, through the getLog command?&lt;/p&gt;</comment>
                            <comment id="3465132" author="evin.roesle" created="Tue, 27 Oct 2020 17:54:20 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=chad%40onspring.com&quot; class=&quot;user-hover&quot; rel=&quot;chad@onspring.com&quot;&gt;chad@onspring.com&lt;/a&gt;. Thank you for bringing this to our attention. The reason we removed getLog: rs is because we actually have been labeling each log by component and no longer were labeling logs with rs. This means that the rs tag did not actually contain all of the relevant logs and was no longer useful as it was not giving a complete view.&lt;/p&gt;

&lt;p&gt;We make sure that each log is labeled by component so the best way to gather these logs moving forward would be to filter the log file by the component that you are interested in. This will give you an accurate view of the logs that you are looking for.&lt;/p&gt;

&lt;p&gt;To perform this filter you can search for &quot;c&quot;:&quot;REPL&quot; in the log file and this will show you all of the logs relevant to replication. At this time, we do not provide the ability to filter before getting the logs, so you will have to get all of the logs first and then apply the filter. &lt;/p&gt;

&lt;p&gt;We should have correct this before and done a better job of documenting this. I will ask our documentation team to update the documentation on how to filter for the different components in the logs.&lt;/p&gt;</comment>
                            <comment id="3383593" author="JIRAUSER1269871" created="Wed, 9 Sep 2020 17:39:57 +0000"  >&lt;p&gt;That was my intent... to flag it as a breaking change.&#160;&lt;/p&gt;

&lt;p&gt;Any chance we can get the rs log back? We have good and regular use for it.&lt;/p&gt;</comment>
                            <comment id="3381517" author="dmitry.agranat" created="Wed, 9 Sep 2020 07:01:51 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=chad%40onspring.com&quot; class=&quot;user-hover&quot; rel=&quot;chad@onspring.com&quot;&gt;chad@onspring.com&lt;/a&gt; for flagging this. The valid options for this command for 4.4 is documented in &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/getLog/#dbcmd.getLog&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/command/getLog/#dbcmd.getLog&lt;/a&gt; and yes, it should have also been added to the breaking changes section. I will follow up on this.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Dima&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="1473957">DOCS-13877</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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 6 Sep 2020 11:49:41 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 14 weeks, 5 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 14 weeks, 5 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>andrew.feierabend@mongodb.com</customfieldvalue>
            <customfieldvalue>chad@onspring.com</customfieldvalue>
            <customfieldvalue>dmitry.agranat@mongodb.com</customfieldvalue>
            <customfieldvalue>evin.roesle@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hy3wmf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxqeov:</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Install 4.4.&lt;/p&gt;

&lt;p&gt;use admin;&lt;/p&gt;

&lt;p&gt;db.adminCommand({getLog: &quot;rs&quot;});&lt;/p&gt;</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[dmitry.agranat@mongodb.com]]></customfieldvalue>
    

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

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