Announcing the Global SNUG Board of Directors. Learn more here

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tiagomacul
Mega Sage
Mega Sage

Demystifying Table cleanup sys_auto_flush / Desmistificando a limpeza da tabela sys_auto_flush

How to use 'Table Cleanup' to delete unwanted data in ServiceNow? / Como usar 'Table Cleanup' para excluir dados indesejados no ServiceNow?

 

  • The Table cleaner does not impact performance as it cleans the data in batches.
    • O table cleanup não afeta o desempenho, pois limpa os dados em lotes.
  • Table cleanup are accessible from: ATF, Instance Scan, System Maintenance

 

Table Cleanup Fields

  • Tablename: Identify Table Name to be cleaned / Identifique o nome da tabela a ser limpa
  • Matchfield: Field based on which records will be cleaned e.g. sys_created_on
    • Campo com base no qual os registros serão limpos, por exemplo sys_created_on
  • Age in seconds (age): How old records to be deleted - Enter the number in seconds - 2592000 for 30 days old records. Enter 0 in seconds if you want to delete all the records for specified condition as specified in 'Conditions'
    • Quantos registros antigos a serem excluídos - digite o número em segundos - 2592000 para registros de 30 dias. Insira 0 em segundos se desejar excluir todos os registros para a condição especificada conforme especificado em 'Condições'
    • Seleção de registro ativo ou inativo
  • Application (sys_scope): Application scope / escopo da aplicação
  • Cascade delete (cascade_delete): Check the check box to delete cascade relationships to the table
    • Delete registros relacionados
  • Conditions: Add the specified filter condition or do not add it if all the records related of certain age needs to be deleted as specified in 'Age in seconds'
    • Condição de seleção dos registros, utilize o campo Age in seconds em condições de idade dos registros.

 

ImageDescription
 01. >> System Maintenance > Table Cleanup
 find_real_file.png

alternatively

01. >> Instance Scan >Table Cleanup

 find_real_file.png

alternatively

 01. >> ATF > Administration > Table cleanup

find_real_file.png

alternatively

01. sys_auto_flush.list

 find_real_file.png 02. Click on 'New' 
find_real_file.png03. Based upon the clean up requirements fill in the following fields accordingly
find_real_file.png04. Click Submit

 

Sample 01: syslog the last 90 days

find_real_file.png

 

Sample 02: wf_context the last 180 days where actice is false

find_real_file.png

 

MonthsDaysSecs
 186,400 
 7604,800 
 151.296.000
 201.728.000
01302 592 000
0390 7,776,000
0618015,552,000
1236531,536,000

 

image

summary

How to: Use "Table cleaner" to remove unwanted data

Increasing Service Portal log (sp_log) to more than 90-day default

Steps to mitigate the rapid growth of the table: Call Chains [sys_call_chain]

A script to automatically clean up sys_audit_delete and sys_audit_relation records

upgrades

ServiceNow versions

Demystifying table rotation, extension, and table cleaner

All the logs in ServiceNow

 

Version history
Last update:
‎07-28-2021 07:35 AM
Updated by: