Dataset Management
Create, inspect, and delete datasets with pb dataset.
Datasets are the top-level containers for logs, metrics, and traces in Parseable. Use pb dataset to manage them from the terminal.
List datasets
pb dataset list
pb dataset lspb dataset list --output jsonCreate a dataset
pb dataset add <name> --type <logs|metrics|traces>pb dataset add backend_logs --type logs
pb dataset add frontend_metrics --type metrics
pb dataset add checkout_traces --type tracesIf --type is omitted, pb opens an interactive picker for logs, metrics, or traces.
Inspect a dataset
pb dataset info backend_logs
pb dataset stat backend_logspb dataset info backend_logs --output jsonShows:
- Event count and ingestion size
- Storage size and compression ratio
- Retention period (if configured)
- Active alerts (if any)
- Dataset type (
logs,metrics, ortraces)
Delete a dataset
pb dataset remove <name>
pb dataset rm <name>pb dataset remove old_logs --type logsDeleting a dataset removes all data it contains. This action cannot be undone.
Use --type with remove when you want the command to fail if the dataset is not the expected type.
Was this page helpful?