Registro em log seguro - Amazon Redshift

O Amazon Redshift não permitirá mais a criação de funções definidas pelo usuário (UDFs) do Python a partir de 1.º de novembro de 2025. Se quiser usar UDFs do Python, você deve criá-las antes dessa data. As UDFs do Python existentes continuarão a funcionar normalmente. Para ter mais informações, consulte a publicação de blog .

Registro em log seguro

Quando o Amazon Redshift registra uma consulta que faz referência a uma ou mais visualizações de AWS Glue Data Catalog, o Amazon Redshift automaticamente mascara campos em determinadas colunas de tabela e visualização do sistema ao registrar metadados sobre essa consulta.

O mascaramento seguro de registros aplica-se a todas as entradas de tabelas e visualizações do sistema que o Amazon Redshift gera ao executar uma consulta que se ajusta às condições de mascaramento. A tabela a seguir lista as visualizações e colunas do sistema com o registro em log seguro aplicado, mascarando texto com ****** e números com -1. O número de asteriscos usados para mascarar o texto corresponde ao número de caracteres no texto original, até 6 caracteres. Cadeias de caracteres com mais de 6 caracteres ainda aparecem como 6 asteriscos.

Tabela do sistema Colunas sigilosas
SYS_EXTERNAL_QUERY_DETAIL

Colunas: source_type, total_partitions, qualified_partitions, scanned_files, returned_rows, returned_bytes, file_format, file_location, external_query_text, warning_message.

SYS_EXTERNAL_QUERY_ERROR

Colunas: file_location, rowid, column_name, original_value, modified_value, trigger, action, action_value, error_code.

SYS_QUERY_DETAIL

Colunas: step_id, step_name, table_id, table_name, input_bytes, input_rows, output_bytes, output_rows, blocks_read, blocks_write, local_read_IO, remote_read_IO, spilled_block_local_disk, spilled_block_remote_disk, step_attribute.

SYS_QUERY_HISTORY

Colunas: returned_rows, returned_bytes.

STL_AGGR

Colunas: rows, bytes, tbl, type.

STL_BCAST

Colunas: rows, bytes, packets.

STL_DDLTEXT

Colunas: label, text.

STL_DELETE

Colunas: rows, tbl.

STL_DIST

Colunas: rows, bytes, packets.

STL_ERROR

Colunas: file, linenum, context, error.

STL_EXPLAIN

Colunas: plannode, info.

STL_FILE_SCAN

Colunas: name, line, bytes.

STL_HASH

Colunas: rows, bytes, tbl, est_rows.

STL_HASHJOIN

Colunas: rows, tbl, num_parts, join_type.

STL_INSERT

Colunas: rows, tbl.

STL_LIMIT

Colunas: rows.

STL_MERGE

Colunas: rows.

STL_MERGEJOIN

Colunas: rows, tbl.

STL_NESTLOOP

Colunas: rows, tbl.

STL_PARSE

Colunas: rows.

STL_PLAN_INFO

Colunas: startupcost, totalcost, rows, bytes.

STL_PROJECT

Colunas: rows, tbl.

STL_QUERY

Colunas: querytxt.

STL_QUERY_METRICS

Colunas: max_rows, rows, max_blocks_read, blocks_read, max_blocks_to_disk, blocks_to_disk, max_query_scan_size, query_scan_size.

STL_QUERYTEXT

Colunas: text.

STL_RETURN

Colunas: rows, bytes.

STL_S3CLIENT

Colunas: bucket, key, transfer_size, data_size.

STL_S3CLIENT_ERROR

Colunas: bucket, key, error, transfer_size.

STL_SAVE

Colunas: rows, bytes, tbl.

STL_SCAN

Colunas: rows, bytes, fetches, type, tbl, rows_pre_filter, rows_pre_user_filter, perm_table_name, scanned_mega_value.

STL_SORT

Colunas: rows, bytes, tbl.

STL_SSHCLIENT_ERROR

Colunas: ssh_username, endpoint, command, error.

STL_TR_CONFLICT

Colunas: table_id.

STL_UNDONE

Colunas: table_id.

STL_UNIQUE

Colunas: rows, type, bytes.

STL_UTILITYTEXT

Colunas: label, text.

STL_WINDOW

Colunas: rows.

STV_BLOCKLIST

Colunas: col, tbl, num_values, minvalue, maxvalue.

STV_EXEC_STATE

Colunas: rows, bytes, label.

STV_INFLIGHT

Colunas: label, text.

STV_LOCKS

Colunas: table_id.

STV_QUERY_METRICS

Colunas: rows, max_rows, blocks_read, max_blocks_read, max_blocks_to_disk, blocks_to_disk, max_query_scan_size, query_scan_size.

STV_STARTUP_RECOVERY_STATE

Colunas: table_id, table_name.

STV_TBL_PERM

Colunas: id, name, rows, sorted_rows, temp, block_count, query_scan_size.

STV_TBL_TRANS

Colunas: id, rows, size.

SVCS_EXPLAIN

Colunas: plannode, info.

SVCS_PLAN_INFO

Colunas: rows, bytes.

SVCS_QUERY_SUMMARY

Colunas: step, rows, bytes, rate_row, rate_byte, label, rows_pre_filter.

SVCS_S3LIST

Colunas: bucket, prefix, retrieved_files, max_file_size, avg_file_size.

SVCS_S3LOG

Colunas: message.

SVCS_S3PARTITION_SUMMARY

Colunas: total_partitions, qualified_partitions, min_assigned_partitions, max_assigned_partitions, avg_assigned_partitions.

SVCS_S3QUERY_SUMMARY

Colunas: external_table_name, file_format, s3_scanned_rows, s3_scanned_bytes, s3query_returned_rows, s3query_returned_bytes.

SVL_QUERY_METRICS

Colunas: step_label, scan_row_count, join_row_count, nested_loop_join_row_count, return_row_count, spectrum_scan_row_count, spectrum_scan_size_mb.

SVL_QUERY_METRICS_SUMMARY

Colunas: step_label, scan_row_count, join_row_count, nested_loop_join_row_count, return_row_count, spectrum_scan_row_count, spectrum_scan_size_mb.

SVL_QUERY_REPORT

Colunas: rows, bytes, label, rows_pre_filter.

SVL_QUERY_SUMMARY

Colunas: rows, bytes, rows_pre_filter.

SVL_S3LIST

Colunas: bucket, prefix, retrieved_files, max_file_size, avg_file_size.

SVL_S3LOG

Colunas: message.

SVL_S3PARTITION

Colunas: rows, bytes, label, rows_pre_filter.

SVL_S3PARTITION_SUMMARY

Colunas: total_partitions, qualified_partitions, min_assigned_partitions, max_assigned_partitions, avg_assigned_partitions.

SVL_S3QUERY

Colunas: external_table_name, file_format, s3_scanned_rows, s3_scanned_bytes, s3query_returned_rows, s3query_returned_bytes, files.

SVL_S3QUERY_SUMMARY

Colunas: external_table_name, file_format, s3_scanned_rows, s3_scanned_bytes, s3query_returned_rows, s3query_returned_bytes.

SVL_S3RETRIES

Colunas: file_size, location, message.

SVL_SPECTRUM_SCAN_ERROR

Colunas: location, rowid, colname, original_value, modified_value, trigger, action, action_value, error_code.

SVL_STATEMENTTEXT

Colunas: type, text.

SVL_STORED_PROC_CALL

Colunas: querytxt.

SVL_STORED_PROC_MESSAGES

Colunas: message, linenum, querytext.

SVL_UDF_LOG

Colunas: message, funcname.

SVV_DISKUSAGE

Colunas: name, col, tbl, blocknum, num_values, minvalue, maxvalue.

SVV_QUERY_STATE

Colunas: rows, bytes, label.

SVV_TABLE_INFO

Colunas: table_id, table.

SVV_TRANSACTIONS

Colunas: relation.

Para ter mais informações sobre visualizações e tabelas do sistema, consulte Referência de visualizações e tabelas do sistema no Guia do desenvolvedor de banco de dados do Amazon Redshift. Para obter informações sobre a capacidade do Amazon Redshift de mascarar dinamicamente os resultados da consulta, consulte Mascaramento dinâmico de dados no Guia do desenvolvedor de banco de dados do Amazon Redshift. Para obter mais informações sobre como criar visualizações no AWS Glue Data Catalog usando o Amazon Redshift, consulte Visualizações do AWS Glue Data Catalog no Guia do desenvolvedor de banco de dados do Amazon Redshift.