<h2>How to capture IRE [identification and reconciliation engine] debug logs.</h2><br/><div style="overflow-x:auto"><div><h3>Description</h3><ul style="list-style-position: inside;"><li>This article focuses on how to enable CI identification and Reconciliation debugging and view the CI payload to the IRE and check the issues with the payload on demand</li><li>For the latest information on this topic, see <a href="https://docs.servicenow.com/csh?topicname=ire.html&version=latest">https://docs.servicenow.com/csh?topicname=ire.html&version=latest</a>.</li></ul> <p style="padding-left: 40px;"><span style="font-size: 9pt;"><strong><span style="color: #0f49e6; background-color: #ecf0f1;">Note - If the issue is with discovery or other apps where the import set is not involved then directly start from step 1</span></strong></span></p> <ul style="list-style-position: inside;"><li><strong>Step #0: Preparation Step (Applies to Import Sets Only)</strong></li></ul> <p style="padding-left: 80px;">Many Import Sets contain thousands or tens of thousands of records, which generate too much output with IRE debugging enabled. The best approach is to take an existing Import Set that triggers the IRE issue, pick out a small number (max 5) records that demonstrate the issue, and have them reprocessed in a separate Import Set (these steps should be done by Integrations):</p> <ul><li style="list-style-type: none;"> <ul style="list-style-position: inside;"><li><strong>Step #0a:</strong> Open the Import Set that triggers the IRE issue. In the context (grey bar) menu click "Insert and Stay". We will be using this Import Set for reprocessing to obtain the specific IRE payload.</li><li><strong>Step #0b:</strong> Now go to the list view of the relevant Import Set Staging table, (f<em>or example if the issue is with Computer record imports in SG SCCM it would be</em> <em>https://<instance-name>.service-now.com/sn_sccm_integrate_sccm_2019_computer_id.do</em>) and open the staging record which experiences the issue.</li><li><strong>Step #0c:</strong> Populate the "Set" field with the newly created Import Set number (from Step #0-1), then in the context (grey bar) menu click "Insert and Stay".<br /><br /><em>Note: You may need to modify the form layout to expose the "Set" field.</em></li></ul> </li></ul> <p style="padding-left: 80px;"><img style="border-width: 1px; border-style: solid;" title="KB0750382_Step0-3.jpg" src="/sys_attachment.do?sys_id=dd5b9a3047d3f1502c31b98a436d4366" alt="" width="301" height="105" /></p> <ul><li style="list-style-type: none;"> <ul style="list-style-position: inside;"><li><strong>Step #0d:</strong> If multiple staging records are required, please repeat steps 0b and 0c.</li></ul> </li></ul> <p style="padding-left: 40px;">Follow the rest of the steps in this article, at Step #2 you will open the Import Set you created and click 'Reprocess' followed by 'Transform'.</p> <ul style="list-style-position: inside;"><li><strong>Step #1</strong>:<strong> Enable IRE debugging for the CI payload (*Caution: This causes extensive logging and should not be left on*).<br /><br /></strong> <ul style="list-style-position: inside;"><li>Check if the property "<a title="glide.cmdb.logger.source.identification_engine" href="https://docs.servicenow.com/csh?topicname=r_IWIdentAndReconcil.html&version=latest" target="_blank" rel="noopener noreferrer"><strong>glide.cmdb.logger.source.identification_engine</strong></a>" exists in the sys_properties list. If not create one with the type String.</li><li>For this property set the value to *</li><li>This will allow all IRE logs to show up in SYSLOG (System Logs) table.<br /><br /></li></ul> </li><li><strong>Step #2</strong>: Run the specified data source job (like Discovery, Import Set, integration, etc) so the system will trigger the CI identification.</li><li><strong>Step #3</strong>: Once the CI is identified, go to <a title="System Logs" href="https://docs.servicenow.com/csh?topicname=system-logs.html&version=latest" target="_blank" rel="noopener noreferrer">System Logs</a> and look for the source as "<strong>identification_engine</strong>".</li><li><strong>Step #4</strong>: Within the above logs with source as "<strong>identification_engine</strong>", look for the message containing "Input = {" and then copy the whole JSON IRE <strong>input</strong> payload from the message (beginning from <em><strong>{"items" </strong></em>to the end of the message<strong>}</strong>).</li><li><strong>Step #5</strong>: Within the above logs with source as "<strong>identification_engine</strong>", again look for the message containing "Output = {" and then copy the whole JSON IRE <strong>output</strong> payload from the message (beginning from <em><strong>{"items" </strong></em>to the end of the message<strong>}</strong>).</li><li><strong>Step #6</strong>: For further IRE debugging you can run the whole JSON IRE <strong>input</strong> payload (captured in <strong>Step #4</strong>) in the "<a title="identification Simulation" href="https://docs.servicenow.com/csh?topicname=identification-simulation.html&version=latest" target="_blank" rel="noopener noreferrer">identification Simulation</a>" OR use <a title="How to run the CI identification on demand using the payload" href="https://support.servicenow.com/kb_view.do?sysparm_article=KB0750383" target="_blank" rel="noopener noreferrer">How to run the CI identification on demand using the payload</a> and see in the output payload what IRE errors occur while inserting/updating the CI OR you can directly look at whole JSON IRE <strong>output</strong> payload (captured in <strong>Step #5</strong>) and directly see what IRE errors occur while inserting/updating the CI. </li><li><strong>Step #7</strong>: Revert the property to avoid any issues with extensive logging when left on.</li></ul></div><div><h3>Additional Information</h3><ul style="list-style-position: inside;"><li><a title="Few Available Properties for CMDB IRE" href="https://docs.servicenow.com/csh?topicname=r_IWIdentAndReconcil.html&version=latest" target="_blank" rel="noopener noreferrer">Few Available Properties for CMDB IRE</a></li><li><a title="identification Simulation" href="https://docs.servicenow.com/csh?topicname=identification-simulation.html&version=latest" target="_blank" rel="noopener noreferrer">identification Simulation</a></li><li><a title="System Logs" href="https://docs.servicenow.com/csh?topicname=system-logs.html&version=latest" target="_blank" rel="noopener noreferrer">System Logs</a></li><li><a title="Identification engine error messages" href="https://docs.servicenow.com/csh?topicname=id-engine-error-messages.html&version=latest" target="_blank" rel="noopener noreferrer">Identification engine error messages</a></li><li><a title="How the CMDB Identification and Reconciliation Engine works when pass a CI (as payload) to the createOrUpdateCi()" href="https://support.servicenow.com/kb_view.do?sysparm_article=KB0750386" target="_blank" rel="noopener noreferrer">How the CMDB Identification and Reconciliation Engine works when passing a CI (as payload) to the createOrUpdateCi()</a></li></ul></div></div>