Data Inventory: Metric Reference
This page is the source of truth for the in-app Explain this panels on the
Data Inventory page (/data-inventory). Each section is
written once as a content partial under _explain/data-inventory/ and rendered both here and
inside the app's info panel (scripts/build-explain.mjs compiles the registry).
All KPIs and the table respect the topbar instance filter. Except for Classified Databases, which lists every engine, they only cover PostgreSQL, SQL Server, and Oracle, the three classified engines. The single-table view is documented separately in the Detail reference.
Where sensitive data lives right now across monitored databases: KPIs, a risk-scored table of sensitive tables, and filters to narrow by engine, schema, or search.
How it's calculated
- Scope: PostgreSQL, SQL Server, and Oracle are the only classified engines today, so the Engine filter offers only these. MongoDB, Redis, and Valkey are not classified yet.
- Classification runs from schema metadata only: schema, table, column name, and data type. No row values are read. A model assigns up to 4 categories per column, each kept at confidence ≥ 50%.
- A daily sweep and schema-change events keep results current; there is no manual trigger. KPIs and the table respect the topbar instance filter and are cached for about 5 minutes; Classified Databases is read live.
- The surface is marked Beta.
Reading it
Start at the KPI strip for the exposure numbers, and check Classified Databases for databases the other numbers don't cover yet. Then work the Sensitive Tables list (sorted by risk by default) to triage. The same data is available as a point-in-time PDF under Reports.
Tables With PII
How many classified tables have at least one column flagged as PII.
How it's calculated
- Counts distinct tables with ≥1 column classified into the PII category specifically. The other 7 categories (Financial, Credentials, Payment, Health, Location, Legal, HR) don't count toward this KPI.
- Only PostgreSQL, SQL Server, and Oracle tables are classified, so this is a lower bound on the real estate.
- Respects the topbar instance filter. Cached for about 5 minutes and refreshed after each successful classification run.
Reading it
A rising count without a matching schema change usually means the daily sweep reached a database for the first time. Cross-check against Sensitive Column Density to see whether PII is concentrated or spread thin.
High-Risk Tables
How many sensitive tables carry a High or Critical computed risk score.
How it's calculated
- Risk = sensitivity × exposure, bucketed as Critical (≥0.75), High (≥0.55), Medium (≥0.35), or Low. This KPI counts the Critical and High buckets.
- Sensitivity is the table's most sensitive kind of data: Credentials and Payment 1.0, Health 0.9, PII and Financial 0.8, HR and Legal 0.6, Location 0.4.
- Exposure = 0.5 + 0.5 × access. Access is 1.0 when everyone (PUBLIC) has rights on tables in the schema (the Access level column says "Everyone"); otherwise it follows the number of users in the Access level column: none 0; 1 to 2 users 0.2; 3 to 5 users 0.4; 6 to 10 users 0.7; more than 10 users 1.0. When no grants were read, access counts as 0.
- Encryption is shown in its own column but doesn't change the score. Respects the topbar instance filter and the same 5-minute cache as the other KPIs.
Reading it
A table needs both sensitive data and people with rights on it to rank high: with nobody known, sensitive data stays Medium at most. Credentials or Payment with even one is High; PII or Financial needs 3 or more for High, and more than 10 or everyone for Critical. Open a row to see who has rights in its schema.
Unencrypted Tables
How many sensitive tables are confirmed unencrypted.
How it's calculated
- Counts sensitive tables (≥1 classified column) whose encryption status is Unencrypted. Tables with status Unknown are excluded from this count, not treated as unencrypted.
- Only SQL Server carries a real encryption value, from the database's transparent data encryption (TDE) flag. Every other engine reports Unknown, so in practice this KPI counts SQL Server tables without TDE.
- Respects the topbar instance filter and the shared 5-minute KPI cache.
Reading it
Zero does not mean everything is encrypted. It can mean nothing sensitive is on SQL Server yet, or that TDE status hasn't been read. Check the list's Encryption column, where PostgreSQL and Oracle tables always show —.
Sensitive Column Density
What share of the classified catalog's columns are sensitive.
How it's calculated
- Sensitive columns divided by all live catalog columns, as a percentage to 1 decimal, on PostgreSQL, SQL Server, and Oracle only. The hint below the number shows the raw sensitive-column count.
- Shows
—when the total can't be read, is 0, or comes back smaller than the sensitive count. An organization with no classifications at all shows 0.0%, not—. - This is density across the whole catalog. Classification coverage (the share of columns in databases with at least one completed run) is a related but different number shown only in the Data Inventory PDF report.
Reading it
Rising density can mean either newly classified sensitive columns or a shrinking denominator (fewer live catalog columns). Pair with Tables With PII to see whether the change is concentrated in a few tables.
Classified Databases
How many active databases have completed at least one sensitive-data classification run, out of all active databases in scope.
How it's calculated
- Served by
GET /api/v1/insights/data-inventory/classification-status, one row per active database, filtered by the topbar instance filter. Unlike the other KPIs it lists every engine, including ones beyond the classified PostgreSQL, SQL Server, and Oracle. - A database counts as classified once any classification run for it has completed. The figure after "of" is every active database in scope.
- N skipped on last run counts classified databases whose most recent run was skipped. They keep the results of their earlier run, so their tables still count toward the other KPIs.
- Read live, not from the 5-minute KPI cache. Shows
—when the status can't be read or there are no active databases.
Statuses and reasons
View details lists every database that is not fully classified, with its instance, engine, reason and last attempt. Databases that need attention come first; unsupported engines are listed last.
- No columns found in the schema catalog: the current schema snapshot has no columns for the database. It has no tables, or its first snapshot hasn't arrived yet.
- Too many columns to classify: the database has more columns than the per-database limit (10,000 by default), so the run is skipped.
- Classification quota reached: the classification model's quota ran out. A later run retries.
- Classification failed: the run returned an error.
- Some tables came back empty; their results are kept until a re-check: the model returned nothing for some tables that had results before, so those results were kept and the tables are checked again on the next run.
- Excluded by a rule: every table of the database is excluded by the organization's rules, so nothing is sent to the model.
- Engine not supported yet: MongoDB, Redis and Valkey are not classified yet.
- No classification attempt recorded yet: no run has reached the database so far.
Reading it
On an estate with MongoDB, Redis or Valkey, a total well above the classified count is expected. Look at PostgreSQL, SQL Server, and Oracle rows first: a database skipped for its column count stays unclassified, or keeps an old result, until its catalog shrinks below the limit. This counts databases; the PDF report's Classification coverage counts columns, so the two can differ.
Filters
Narrows the Sensitive Tables list by search text, engine, and schema.
How it's calculated
- Search matches database, table, or instance name, debounced as you type.
- Engine is a multi-select chip that lists only the classified engines: PostgreSQL, SQL Server, and Oracle.
- Schema is a multi-select chip populated only with schemas already present in the inventory, so it can't be used to browse schemas that have no classified table.
- Clear filters resets all of the above. The topbar instance filter and the table's own header-menu filters (Database, Encryption, Risk) apply on top of this row. Filter state is kept in the URL, so a filtered view is shareable.
Reading it
Combine Engine and Schema to scope a review to one part of the estate before sorting the table by Risk. A cleared filter row still respects the topbar instance selection.
Sensitive Tables
Every table with at least one sensitive column, ranked by computed risk.
How it's calculated
- Only tables with ≥1 classified column appear. Default sort is Risk descending; 20 rows per page.
- Columns: Database, Instance, Table, Data types (first 3 categories, then "+N" for the rest), Encryption, Access level, Risk.
- Sortable columns: Database, Instance, Table, Encryption, Risk. Header-menu filters are available on Database, Encryption, and Risk, on top of the Filters row above.
- Access level is per schema: every table in a schema shows the same value, like "Medium (3 users)": None (0), Low (1 to 2), Medium (3 to 5), High (6 to 10), Very high (more than 10), the same steps as the risk score. It counts the users who can read, write or manage tables in the schema: a role counts as the users in it, and users who read or write every table count too (PostgreSQL pg_read_all_data / pg_write_all_data members; SQL Server db_datareader and db_datawriter members). Admins who manage every table are not counted (PostgreSQL superusers; SQL Server sysadmins, db_owner members and the database owner): they reach every table of every database, so they say nothing about one table. "Admins only (N admins)" means only such admins have rights there. Logstag's own monitoring login and built-in accounts are left out. "Everyone" means PUBLIC has rights on tables there; "Unknown" means nothing was read for the schema or its database.
Reading it
Click a row to open the table's detail view for its full column-level classification. Sort by Risk to triage, or filter by Encryption to find sensitive tables still missing TDE.