|
| 1 | +<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check"> |
| 2 | + <scan_table_check action="INSERT_OR_UPDATE"> |
| 3 | + <active>true</active> |
| 4 | + <advanced>false</advanced> |
| 5 | + <category>performance</category> |
| 6 | + <conditions table="syslog_transaction">response_time>120000^sys_created_onONYesterday@javascript:gs.beginningOfYesterday()@javascript:gs.endOfYesterday()^EQ<item endquery="false" field="response_time" goto="false" newquery="false" operator=">" or="false" value="120000"/> |
| 7 | + <item endquery="false" field="sys_created_on" goto="false" newquery="false" operator="ON" or="false" value="Yesterday@javascript:gs.beginningOfYesterday()@javascript:gs.endOfYesterday()"/> |
| 8 | + <item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/> |
| 9 | + </conditions> |
| 10 | + <description>This check monitors and analyzes transaction logs to identify jobs and transactions that are taking longer than expected to complete. By tracking slow or stuck jobs, this check aims to uncover performance bottlenecks that may hinder the overall efficiency of the ServiceNow instance. It provides insights into long-running transactions, helping administrators diagnose and resolve performance issues affecting user experience.</description> |
| 11 | + <documentation_url/> |
| 12 | + <finding_type>scan_finding</finding_type> |
| 13 | + <name>Transaction Log Performance Check</name> |
| 14 | + <priority>2</priority> |
| 15 | + <resolution_details>If slow jobs are detected, the following steps should be taken to address the issues: |
| 16 | + |
| 17 | +Identify Long-Running Transactions: |
| 18 | + |
| 19 | +Review the transaction logs for entries with a response time exceeding predefined thresholds (e.g., 120 seconds). |
| 20 | +Analyze the Context: |
| 21 | + |
| 22 | +Examine the affected job's details, including: |
| 23 | +User ID |
| 24 | +Session ID |
| 25 | +System ID |
| 26 | +Transaction start and end times |
| 27 | +Associated business rules and background jobs |
| 28 | +Evaluate Dependencies: |
| 29 | + |
| 30 | +Investigate any dependencies or blocking issues that may be causing delays, such as resource contention, database locks, or network issues. |
| 31 | +Optimize Performance: |
| 32 | + |
| 33 | +Consider optimizing any identified business rules, scripts, or scheduled jobs that are causing delays. This may involve code optimization, reducing complexity, or adjusting scheduling. |
| 34 | +Document Findings: |
| 35 | + |
| 36 | +Keep a record of identified issues and resolutions for future reference and continuous improvement. |
| 37 | +Monitor Regularly: |
| 38 | + |
| 39 | +Set up regular monitoring to proactively catch slow jobs before they impact user experience.</resolution_details> |
| 40 | + <run_condition/> |
| 41 | + <score_max>100</score_max> |
| 42 | + <score_min>0</score_min> |
| 43 | + <score_scale>1</score_scale> |
| 44 | + <script><![CDATA[(function (engine) { |
| 45 | +
|
| 46 | + // Add your code here |
| 47 | +
|
| 48 | +})(engine);]]></script> |
| 49 | + <short_description>Tracks transaction logs to identify long-running jobs impacting performance.</short_description> |
| 50 | + <sys_class_name>scan_table_check</sys_class_name> |
| 51 | + <sys_created_by>admin</sys_created_by> |
| 52 | + <sys_created_on>2024-10-08 21:10:28</sys_created_on> |
| 53 | + <sys_id>cdd8763a8301121059f46b70deaad38b</sys_id> |
| 54 | + <sys_mod_count>0</sys_mod_count> |
| 55 | + <sys_name>Transaction Log Performance Check</sys_name> |
| 56 | + <sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package> |
| 57 | + <sys_policy/> |
| 58 | + <sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope> |
| 59 | + <sys_update_name>scan_table_check_cdd8763a8301121059f46b70deaad38b</sys_update_name> |
| 60 | + <sys_updated_by>admin</sys_updated_by> |
| 61 | + <sys_updated_on>2024-10-08 21:10:28</sys_updated_on> |
| 62 | + <table>syslog_transaction</table> |
| 63 | + <use_manifest>false</use_manifest> |
| 64 | + </scan_table_check> |
| 65 | + <sys_translated_text action="delete_multiple" query="documentkey=cdd8763a8301121059f46b70deaad38b"/> |
| 66 | +</record_update> |
0 commit comments