You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/generated/eventlog.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -948,6 +948,37 @@ and the cluster setting `sql.log.all_statements.enabled` is set.
948
948
|`BulkJobId`| The job id for bulk job (IMPORT/BACKUP/RESTORE). | no |
949
949
|`StmtPosInTxn`| The statement's index in the transaction, starting at 1. | no |
950
950
951
+
### `scan_row_count_misestimate`
952
+
953
+
An event of type `scan_row_count_misestimate` is recorded when the optimizer's row count estimate
954
+
for a logical scan differs significantly from the actual number of rows read,
955
+
and cluster setting `sql.log.scan_row_count_misestimate.enabled` is set.
956
+
957
+
958
+
| Field | Description | Sensitive |
959
+
|--|--|--|
960
+
|`TableName`| The fully qualified name of the table being scanned. | no |
961
+
|`IndexName`| The name of the index being scanned. | no |
962
+
|`EstimatedRowCount`| The optimizer's estimated row count for the scan. | no |
963
+
|`ActualRowCount`| The actual number of rows read by all processors performing the scan. | no |
964
+
|`NanosSinceStatsCollected`| Time in nanoseconds that have passed since full stats were collected on the table. | no |
965
+
|`EstimatedStaleness`| Estimated fraction of stale rows in the table based on the time since stats were last collected. | no |
966
+
967
+
968
+
#### Common fields
969
+
970
+
| Field | Description | Sensitive |
971
+
|--|--|--|
972
+
|`Timestamp`| The timestamp of the event. Expressed as nanoseconds since the Unix epoch. | no |
973
+
|`EventType`| The type of the event. | no |
974
+
|`Statement`| A normalized copy of the SQL statement that triggered the event. The statement string contains a mix of sensitive and non-sensitive details (it is redactable). | partially |
975
+
|`Tag`| The statement tag. This is separate from the statement string, since the statement string can contain sensitive information. The tag is guaranteed not to. | no |
976
+
|`User`| The user account that triggered the event. The special usernames `root` and `node` are not considered sensitive. | depends |
977
+
|`DescriptorID`| The primary object descriptor affected by the operation. Set to zero for operations that don't affect descriptors. | no |
978
+
|`ApplicationName`| The application name for the session where the event was emitted. This is included in the event to ease filtering of logging output by application. | no |
979
+
|`PlaceholderValues`| The mapping of SQL placeholders to their values, for prepared statements. | yes |
980
+
|`TxnReadTimestamp`| The current read timestamp of the transaction that triggered the event, if in a transaction. | no |
981
+
951
982
## SQL Logical Schema Changes
952
983
953
984
Events in this category pertain to DDL (Data Definition Language)
Copy file name to clipboardExpand all lines: docs/generated/settings/settings-for-tenants.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -321,6 +321,7 @@ sql.insights.execution_insights_capacity integer 1000 the size of the per-node s
321
321
sql.insights.high_retry_count.threshold integer 10 the number of retries a slow statement must have undergone for its high retry count to be highlighted as a potential problem application
322
322
sql.insights.latency_threshold duration 100ms amount of time after which an executing statement is considered slow. Use 0 to disable. application
323
323
sql.log.redact_names.enabled boolean false if set, schema object identifers are redacted in SQL statements that appear in event logs application
324
+
sql.log.scan_row_count_misestimate.enabled boolean false when set to true, log a warning when a scan's actual row count differs significantly from the optimizer's estimate application
324
325
sql.log.slow_query.experimental_full_table_scans.enabled boolean false when set to true, statements that perform a full table/index scan will be logged to the slow query log even if they do not meet the latency threshold. Must have the slow query log enabled for this setting to have any effect. application
325
326
sql.log.slow_query.internal_queries.enabled boolean false when set to true, internal queries which exceed the slow query log threshold are logged to a separate log. Must have the slow query log enabled for this setting to have any effect. application
326
327
sql.log.slow_query.latency_threshold duration 0s when set to non-zero, log statements whose service latency exceeds the threshold to a secondary logger on each node application
Copy file name to clipboardExpand all lines: docs/generated/settings/settings.html
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -276,6 +276,7 @@
276
276
<tr><td><divid="setting-sql-insights-high-retry-count-threshold" class="anchored"><code>sql.insights.high_retry_count.threshold</code></div></td><td>integer</td><td><code>10</code></td><td>the number of retries a slow statement must have undergone for its high retry count to be highlighted as a potential problem</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
277
277
<tr><td><divid="setting-sql-insights-latency-threshold" class="anchored"><code>sql.insights.latency_threshold</code></div></td><td>duration</td><td><code>100ms</code></td><td>amount of time after which an executing statement is considered slow. Use 0 to disable.</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
278
278
<tr><td><divid="setting-sql-log-redact-names-enabled" class="anchored"><code>sql.log.redact_names.enabled</code></div></td><td>boolean</td><td><code>false</code></td><td>if set, schema object identifers are redacted in SQL statements that appear in event logs</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
279
+
<tr><td><divid="setting-sql-log-scan-row-count-misestimate-enabled" class="anchored"><code>sql.log.scan_row_count_misestimate.enabled</code></div></td><td>boolean</td><td><code>false</code></td><td>when set to true, log a warning when a scan's actual row count differs significantly from the optimizer's estimate</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
279
280
<tr><td><divid="setting-sql-log-slow-query-experimental-full-table-scans-enabled" class="anchored"><code>sql.log.slow_query.experimental_full_table_scans.enabled</code></div></td><td>boolean</td><td><code>false</code></td><td>when set to true, statements that perform a full table/index scan will be logged to the slow query log even if they do not meet the latency threshold. Must have the slow query log enabled for this setting to have any effect.</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
280
281
<tr><td><divid="setting-sql-log-slow-query-internal-queries-enabled" class="anchored"><code>sql.log.slow_query.internal_queries.enabled</code></div></td><td>boolean</td><td><code>false</code></td><td>when set to true, internal queries which exceed the slow query log threshold are logged to a separate log. Must have the slow query log enabled for this setting to have any effect.</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
281
282
<tr><td><divid="setting-sql-log-slow-query-latency-threshold" class="anchored"><code>sql.log.slow_query.latency_threshold</code></div></td><td>duration</td><td><code>0s</code></td><td>when set to non-zero, log statements whose service latency exceeds the threshold to a secondary logger on each node</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
0 commit comments