<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:15:18 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-27489] Audit trail not captured old values while update operartion</title>
                <link>https://jira.mongodb.org/browse/SERVER-27489</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hello All,&lt;/p&gt;

&lt;p&gt;I have requirement to track update information like old values, new values, updated by, timestamp, collection, etc ..&lt;/p&gt;

&lt;p&gt;I have enabled the audit for crud operation with parameter as below ....&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;--auditDestination file --auditFormat JSON --auditPath /data/db/auditLog.json --setParameter auditAuthorizationSuccess=true&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;old  values  :&lt;br/&gt;
==================&lt;/p&gt;

&lt;p&gt;&quot;statusCode&quot; : &quot;NOACTN&quot;&lt;/p&gt;

&lt;p&gt;==============&lt;br/&gt;
update statement :&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;   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;MongoDB Enterprise &amp;gt; db.preauth_case.update(&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;...    { &quot;createdByUserId&quot; : -2 },&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;...    {&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;...       $set: {&quot;statusCode&quot; : &quot;Update&quot;, }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;...      }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;... )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;WriteResult({ &quot;nMatched&quot; : 1, &quot;nUpserted&quot; : 0, &quot;nModified&quot; : 1 })&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;======================&lt;br/&gt;
Audit Trail  : ==&amp;gt;&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:19:45.416-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 65465 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;test&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:19:45.416-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 65506 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;ACMP_DEMO&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:08.977-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 63357 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;update&quot;, &quot;ns&quot; : &quot;ACMP_DEMO.preauth_case&quot;, &quot;args&quot; : { &quot;update&quot; : &quot;preauth_case&quot;, &quot;updates&quot; : [ { &quot;q&quot; : { &quot;createdByUserId&quot; : -2 }, &quot;u&quot; : { &quot;$set&quot; : { &quot;statusCode&quot; : &quot;Update&quot; } }, &quot;multi&quot; : false, &quot;upsert&quot; : false } ], &quot;ordered&quot; : true } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:08.998-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 63357 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;isMaster&quot;, &quot;ns&quot; : &quot;ACMP_DEMO&quot;, &quot;args&quot; : { &quot;isMaster&quot; : 1, &quot;forShell&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:45.423-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 65467 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;admin&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:45.423-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 49201 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;admin&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:45.423-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 65464 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;admin&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:45.424-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 65505 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;admin&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:45.424-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 49195 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;admin&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:45.426-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 49202 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;ACMP_DEMO&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:45.427-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 65468 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;ACMP_DEMO&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:45.428-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 65465 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;test&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:45.428-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 49196 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;ACMP_DEMO&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;{ &quot;atype&quot; : &quot;authCheck&quot;, &quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:45.428-0500&quot; }, &quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 65506 }, &quot;users&quot; : [], &quot;roles&quot; : [], &quot;param&quot; : { &quot;command&quot; : &quot;ping&quot;, &quot;ns&quot; : &quot;ACMP_DEMO&quot;, &quot;args&quot; : { &quot;ping&quot; : 1 } }, &quot;result&quot; : 0 }&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;Manually formatted  : &amp;gt;&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;   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;{ &quot;atype&quot; : &quot;authCheck&quot;, &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;&quot;ts&quot; : { &quot;$date&quot; : &quot;2016-12-20T22:20:08.977-0500&quot; }, &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;&quot;local&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 27017 }, &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;&quot;remote&quot; : { &quot;ip&quot; : &quot;127.0.0.1&quot;, &quot;port&quot; : 63357 },&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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; &quot;users&quot; : [], &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;&quot;roles&quot; : [],&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;&quot;param&quot; : { &quot;command&quot; : &quot;update&quot;, &quot;ns&quot; : &quot;ACMP_DEMO.preauth_case&quot;, &quot;args&quot; : { &quot;update&quot; : &quot;preauth_case&quot;, &quot;updates&quot; : [ { &quot;q&quot; : { &quot;createdByUserId&quot; : -2 }, &quot;u&quot; : { &quot;$set&quot; : { &quot;statusCode&quot; : &quot;Update&quot; } }, &quot;multi&quot; : false, &quot;upsert&quot; : false } ], &quot;ordered&quot; : true } }, &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;&quot;result&quot; : 0 }&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;============&lt;/p&gt;

&lt;p&gt;Question  Here :&lt;/p&gt;

&lt;p&gt;1 &amp;gt; Could be track the old values also from audit trail  ?&lt;br/&gt;
2 &amp;gt; How could be collected all audit trail important information in a collection.&lt;/p&gt;

&lt;p&gt;I would be appreciate if you guys have some input on above query.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="340407">SERVER-27489</key>
            <summary>Audit trail not captured old values while update operartion</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-security">Backlog - Security Team</assignee>
                                    <reporter username="ranjeetblore@gmail.com">RANJEET</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Dec 2016 18:17:06 +0000</created>
                <updated>Tue, 6 Dec 2022 04:09:08 +0000</updated>
                                                                            <component>Admin</component>
                    <component>Security</component>
                                        <votes>1</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="1465514" author="spencer.jackson@10gen.com" created="Tue, 27 Dec 2016 18:55:16 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ranjeetblore%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;ranjeetblore@gmail.com&quot;&gt;ranjeetblore@gmail.com&lt;/a&gt;, the ability to store the audit log directly into a collection is not currently a supported feature, sorry. However, it looks like there is already an open ticket tracking a request to implement it: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12670&quot; title=&quot;Provide option to stream audit log to a database or external system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12670&quot;&gt;SERVER-12670&lt;/a&gt;. I encourage you to watch and vote for that issue, which will help us track demand and make scheduling decisions. Thanks!&lt;/p&gt;</comment>
                            <comment id="1465409" author="ranjeetblore@gmail.com" created="Tue, 27 Dec 2016 16:27:54 +0000"  >&lt;p&gt;Thanks for update  of first query.&lt;/p&gt;

&lt;p&gt;With reference of second query , I would like to know , Is mongodb having  any features to convert audit trail log in  collection  ?  &lt;br/&gt;
So that end user can easily track all transaction history for audit purpose from collection itself .&lt;/p&gt;



</comment>
                            <comment id="1464341" author="spencer.jackson@10gen.com" created="Thu, 22 Dec 2016 20:43:40 +0000"  >&lt;p&gt;Hi! It&apos;s not currently possible to audit the the old values which existed in a document before an update. This seems like a feature request, so we&apos;ll keep this ticket open to track it.&lt;br/&gt;
As for point 2, is there any collection information in particular are you interested in logging?&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>3.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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 22 Dec 2016 20:43:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 7 weeks, 1 day 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 7 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-security</customfieldvalue>
            <customfieldvalue>ranjeetblore@gmail.com</customfieldvalue>
            <customfieldvalue>spencer.jackson@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht02yf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr9hnj:</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_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|hs4kzr:</customfieldvalue>

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