Applies to VAST Cluster 5.5.
VAST Catalog is a table of metadata about the files, objects and directories on your cluster: names, paths, sizes, owners, timestamps, S3 tags and more, one row per element. The audit log is a table of the protocol operations clients performed on the cluster: who did what, to which path, over which protocol, and whether it succeeded. Both are system tables in VAST DataBase. You query them with the same clients you use for your own tables: the VAST DataBase Python SDK, Trino and Spark.
What it is
- System tables in VAST DataBase. The Catalog is the table
vast_big_catalog_tablein the schemavast_big_catalog_schemaof the databasevast-big-catalog-bucket. The audit log isvast_audit_log_tableinvast_audit_log_schemaofvast-audit-log-bucket. In the Python SDK,tx.catalog()andtx.audit_log()open them for you. - Built from periodic snapshots. The cluster takes snapshots of its data on a schedule and indexes their metadata into the Catalog in the background. So the Catalog shows the namespace as it was at the last indexed snapshot, not this second. See snapshots and freshness.
- Kept over time. The cluster keeps earlier copies of the Catalog table for a while, as Catalog snapshots, so you can compare the namespace between two points in time. See change detection.
- Scoped to your tenant. On a cluster with several tenants, your queries return only your tenant's data. Your identity policy can narrow that further, to a path. See access.
- Maintained by the cluster. You query these tables; the cluster writes them, and refuses inserts from clients.
- Off until your platform team turns it on. The Catalog is disabled by default, and so is saving the audit log to VAST DataBase. Enabling either is an admin task.
The cluster writes two system tables; you query them.
Use cases and considerations
Example use cases:
- Find files across a namespace of millions of files without walking directories: for example, files older than 90 days and larger than 10 GB under
/projects, or everything a user created since last week. See find files. - Capacity reports: rank owners by the capacity they use under a path, or rank capacity by file extension. See capacity reports.
- Find S3 objects by tag or metadata: for example, every object whose
processedtag isfalse. See tags and metadata. - Change detection: what was deleted or added between two Catalog snapshots. See snapshots and change detection.
- Who did what: which user read, wrote or deleted a path, from which client address, and whether it succeeded. See the audit log.
- Dashboards and scheduled reports through Trino. See Trino and Spark and Grafana.
Important to note:
- Results lag the file system. The Catalog is as fresh as its last indexed snapshot. By default the cluster takes one every 30 minutes, and your platform team can make it as often as every 15 minutes. Don't use the Catalog for anything that needs to see a file the moment it's written.
- The audit log keeps records for a limited time. The retention period is a cluster setting, one hour by default. Ask your platform team what yours is before you build on it.
- Paths up to 1,024 characters. That's the longest path the Catalog supports in 5.5.
- Not on every cluster. The Catalog can't be enabled on a cluster that uses encryption keys managed through an external key manager (EKM), including per-tenant and per-path keys.
- Not replicated. The Catalog and the audit log aren't copied by VAST DataBase replication. Query them on the cluster that holds the data. With Global Access, the Catalog has no information about data cached from the remote cluster.
- Not everything is audited. VAST Event Broker produce, consume and topic operations aren't covered by protocol auditing.
Which tools reach them
| Tool | Use it for | Page |
|---|---|---|
VAST DataBase Python SDK (vastdb) |
Scripts, notebooks, reports and change detection in Python. tx.catalog(), tx.catalog_snapshots(), tx.audit_log(). |
Quickstart |
| Trino | SQL, dashboards and BI tools | Trino and Spark |
| Spark | Large reports and joins with your own data | Trino and Spark |
| VAST Web UI | Ad hoc lookups by an administrator, with CSV export | KB: Querying VAST Catalog from the VAST Web UI |
VAST Catalog also has a command-line tool, vast-db-cli. These docs don't cover it; see VAST Database CLI Quick Start Guide.
How to read these docs
- Start: this overview, then the quickstart: connect, count what's in the Catalog, run a filtered query and read a Catalog snapshot with the Python SDK.
- Concepts: how the Catalog and the audit log are built: snapshots, element types,
search_path, tenants, indexed and user-defined columns, and the audit record. - Guides: find files, capacity reports, snapshots and change detection, tags and metadata and the audit log.
- Best practices: planned topics.
- Integrations: Trino and Spark and Grafana.
- Reference: Catalog schema and audit log schema.
- Operations: access (what to ask your platform team for) and CI/CD and automation.
- Troubleshooting: symptom, cause and fix.
Where to start
- Admin task: send to your platform team. Ask them to enable the Catalog (Configuring VAST Catalog), and, for the audit log, to save audit logs to VAST DataBase (Configuring Global Auditing Settings). Access lists everything to ask for.
- Run the quickstart.
- Read concepts before you build reports on the Catalog.
See also
- VAST DataBase overview: the database these tables live in.
- VAST Catalog Overview and Protocol Auditing Overview: the admin guides.