<h2>Discovery Command Audit Logs - "mid.log.command_audit.enable"</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><ul><li>The only resource available on the instance to track the list of all commands that are run on the target/remote servers during discovery so far was <em><strong>ecc_queue</strong></em> and this does not provide in detail information on the commands getting executed.<br /><br /></li><li>From Quebec, logging on the MID for the <em><strong>Powershell (WinRM and WMI)</strong></em> and the <em><strong>SSH</strong></em> commands that gets executed discovery on the target, feature is set up.<br /><br /></li><li>The command execution information related to Powershell and SSH during <em><strong>Discovery</strong></em> alone are included to be captured at the MID and not for the other features like Orchestration as of now.<br /><br /></li><li>Customers need to have the role “<em><strong>agent_security_admin</strong></em>“ assigned to them for accessing this feature.<br /><br /></li><li>To activate this, enable the property “<em><strong>mid.log.command_audit.enable</strong></em>” with value “<em><strong>true</strong></em>” in the “<em><strong>ecc_agent_property</strong></em>” table.<br /><br /></li><li>Once this is enabled, the command information will be captured under the table “<em><strong>ecc_gent_command_audit_log</strong></em>”.<br /><br /><img src="/sys_attachment.do?sys_id=b0f458d0dbc7c910457ae6be13961929" width="1055" height="369" /><br /><br /></li><li>This feature allows <br /> <ol><li>To identify the list of all the powershell and ssh commands executed during discovery.</li><li>The hash key for each command is calculated, based on which the change in commands (if any) can be tracked between one discovery and the other.<br /><br /></li></ol> </li><li>The "<em><strong>Execution Status</strong></em>", only implies if the mid server is able to run the command or not, it does not care if the command execution is fetching any result or not. For example, if the mid server is able to run a command on the target, but the result is null, even in such case the execution status would be successful as the mid was able to successfully run the command.<br /><br /></li><li>Activating this feature will have performance implications as there will be a lot of communication between the mid and the instance and hence it is disabled by default and can be enabled based on the requirement. <br /><br /></li><li>Enabling this may make discovery run a slight longer.<br /><br /></li><li>This is not supported for domain separation in Quebec but will be considered for the upcoming releases.<br /><br /></li><li>Data is not populated on the instance as soon as the discovery is executed, a slight delay is expected between the probe/pattern run and the audit capture.<br /><br /></li><li>Duplicate data may be expected in the table, in cases of network issues, as, if the audit log does not receive the acknowledgement for data population, it will try to resend the data even if the is already present.</li></ul></section></div></article></div>