Drill - API Documentation
Enterprise
This feature is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.
Overview
Drill provides deep event analytics with flexible segmentation, metadata lookup, and saved query workflows.
This index keeps a product-oriented view. Endpoint pages include request and response details.
Quick Links
Queries
Bookmarks
Maintenance
Common Workflows
Analyze Event Performance
- Call Query Metadata - Read to discover available fields.
- Run Query Segmentation - Read with filter and grouping parameters.
- Save reusable queries with Bookmark - Create.
Manage Saved Queries
- Load bookmarks with Bookmarks - Read.
- Apply selected query settings in Drill UI/API calls.
- Remove unused entries with Bookmark - Delete.
Maintain Metadata
- Run Metadata Cleanup - Update for one app or all apps.
- Use Metadata Lists - Recheck when stored metadata value lists need to be re-evaluated.
- Use Metadata Regeneration when metadata needs to be rebuilt from recent Drill data.
- Confirm completion from system logs.
Data Sources
countly_drill.drill_meta: Event and property metadata used by meta endpoints.countly_drill.drill_events{appId/hash}: Event-level drill data queried by segmentation flows.countly_drill.drill_bookmarks: Stored drill query bookmarks.countly_drill.drill_cache: Cached drill query results (TTL-managed).countly_drill.drill_snapshots: Snapshot support for drill queries.countly.systemlogs: Operational logs for cleanup/bookmark operations.
Configuration Notes
From plugins.setConfigs("drill", ...) in plugins/drill/api/api.js:
list_limit: max value list size for metadata responses.projection_limit: limit for projection dimensions.big_list_limit: limit for big-list property value extraction.cache_threshold: threshold for cached query usage.use_drill_snapshotsanddrill_snapshots_cache_time: snapshot behavior.clickhouse_use_approximate_uniq: ClickHouse unique-count behavior.
Notes
- Most Drill reads are exposed through
/o?method=.... - Bookmark create/delete and maintenance operations are exposed through
/i/drill/<action>.
Last Updated: 2026-04-17