Appearance
Commands
Interactive REPL
Drop into an interactive SQL prompt (no arguments):
bash
vantInside the REPL, type SQL queries or shortcuts:
vant> SELECT * FROM vantmetry_logs LIMIT 10
vant> recent
vant> errors
vant> help
vant> exitAvailable REPL shortcuts:
recent- Show the last 20 logserrors- Show recent errors grouped by fingerprintcount- Show total log counthelp- Show available commandsclear- Clear the screenexit- Quit the REPL
Direct Query
Execute a query directly without entering the REPL:
bash
vant query "SELECT severity, count(*) as cnt FROM vantmetry_logs GROUP BY severity"Output Formats
By default, results are displayed in a formatted table. For programmatic use:
--json: JSON array--ndjson: Newline-delimited JSON (for piping to LLMs or large datasets)--fields=col1,col2: Return only specific columns
Example:
bash
vant query "SELECT * FROM vantmetry_logs WHERE severity = 'ERROR'" --ndjson --fields=ts,messageRecent Logs
Show the last 20 logs with timestamps, severity, and message:
bash
vant recentEquivalent to:
bash
vant query "SELECT ts, severity, message, trace_id FROM vantmetry_logs ORDER BY ts DESC LIMIT 20"Errors Grouped
Show recent errors grouped by fingerprint with counts:
bash
vant errorsGroups errors by fingerprint (hash of error type, message, and stack), showing:
- Fingerprint
- Severity
- First message
- Count of occurrences
- Last seen timestamp
Useful for finding your most frequent errors.
Stream (Tail)
Stream new logs in real-time as they arrive:
bash
vant tailPolls every 2 seconds (default). Press Ctrl+C to stop.
Custom poll interval:
bash
vant tail --interval 5Shows timestamp, severity, and message for each new log in real-time.
Schema
Print the database schema in machine-readable JSON:
bash
vant schemaOutputs:
- CLI command reference
- Available table names
- Column names and types for
vantmetry_logs
Useful for AI agents and introspection tools.
Help
Show the help message with all available commands and flags:
bash
vant helpOr use the --help / -h flag:
bash
vant --help
vant query --help