create_dataset
Create a new dataset from scratch, by sampling logs with filters, or by duplicating an existing one.
Instructions
Create a new dataset.
MODES:
Empty dataset: pass is_empty=true. No time range needed.
Sampled from logs: pass start_time, end_time, and optionally sampling (1-100) and initial_log_filters.
Duplicate existing: pass source_dataset_id to copy logs from another dataset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Dataset name. Required unless source_dataset_id is provided. | |
| end_time | No | ISO 8601 end of log time range. Required when sampling logs. | |
| is_empty | No | Create an empty dataset without importing logs (skips time range requirement). | |
| sampling | No | Percent of matching logs to add (1-100). | |
| start_time | No | ISO 8601 start of log time range. Required when sampling logs. | |
| description | No | A description of the dataset. | |
| source_dataset_id | No | Existing dataset ID to duplicate. Copies logs asynchronously. | |
| initial_log_filters | No | Filters keyed by field name. Example: { "status_code": { "operator": "eq", "value": 200 } } |