Queries
Queries (/queries) is the query library: saved PDL definitions you maintain once and reuse across detection workflows. Detection tasks typically reference these rows by id so analysts and operators can centralize detection logic and shared rules without duplicating long PDL strings in every task.
What is a saved query?
| Concept | Description |
|---|---|
| Definition | A reusable PDL body stored under a stable name and id. |
| Consumers | Detection tasks select one or more saved queries and run them as independent conditions (Tasks). |
| Management | One place to author, review, and clone logic used in many deployments. |
| Composition | Definitions can be assembled from existing task or query text, then edited as a single saved unit. |
| Role | Building blocks for rule-style and multi-condition detection flows—not the same as inline processing PDL on a single task. |
Queries list
Open Pipelines → Queries (/pipelines/queries). Use Create for a new saved query; filters match id, name, description, and PDL where supported. The footer controls paging.
Create → Create a query.

These tables share one layout: Search and Create in the toolbar, then a grid with filters on the row under the headers. On Pipelines, one Download / Upload pair for registry JSON sits on the right of the tab strip (a full bundle can be imported from any tab). On Services, Service Clients sits on the right of the tab strip.
Record menu. View, Edit, Clone, and Delete are items in the record menu (...) on each row. They are not icons beside the checkbox.
Row icons. Icons beside the checkbox sit in bordered groups:
- Config — Sync, Deploy, and Remove. Sync is "on", Deploy is "to", and Remove is "from"; the label names the object, for example Deploy Config to cores or Remove Pipeline from cores. Sync shows when the row needs deploy, Deploy when a target is left, and Remove when something is assigned.
- Runtime (Pipelines, Sources, Tasks, Sinks) — Start, Stop, and Restart icon buttons. They apply to the assigned cores in the matching state: Start where it is not running, Stop and Restart where it is running. Stop and Restart ask you to confirm.
There is no Core Actions column and no Config Actions column.
Assignments (Pipelines, Sources, Tasks, Sinks, Lookup Connectors). Each assigned Core or Lookup is a chip on the entity row, not a repeated row in the table. Hover a chip to see its deployed time. A pipeline chip lists each source, task, and sink status. A source, task, or sink chip shows that one status. The hover adds Needs sync when that assignment needs deploy. Created Time and Updated Time sit after Assignments.
Bulk delete. Select rows, then Delete Selected: the red outline button, the same height as the other toolbar buttons.
Columns. Drag a header border to resize a column; double-click the border to fit the content. Every data column can collapse with the control in its header, except the last open data column. Closed columns sit together before Actions. Reset table view clears dragged widths and your open/closed column choices. Long text shows more as the column widens; there is no hover tooltip on truncated text. Status and assignment tooltips stay.
Table modals. A modal whose body is a table (Process config, Lookup Tables, Lookup Connectors, LDAP) has a Full page control in its header. Service Clients does not.
| Column | Description |
|---|---|
| ID | Stable query identifier (commonly derived from the name). |
| Name | Display label in the library. |
| Description | Short operator or analyst notes. |
| PDL | Saved PDL body (may be truncated in the grid). |
| Created time / Updated time | Audit timestamps. |
| ... | Record menu: View, Edit, Clone, Delete. |
Create a query
- Choose a unique Query Name (the UI derives the stable
id, typically spaces → underscores). - Add an optional Description (intent, owner, change reference).
- Write PDL in the editor, or use + Task / + Query to pull existing text in as a starting point (Query composition).
- Validate mentally against PDL Quick Reference / Reference; use Save when the body is complete.
- Reference the saved query ids from detection tasks when you configure those tasks (Reusing queries in tasks).

Query Name (required) — Must be unique among saved queries. Downstream tasks store references by id.
PDL (required) — The editor content is the single saved definition. Toolbar actions (for example expand / full screen) help with long pipelines.
Reusing queries in tasks
- Open Tasks in detection mode and select saved queries from the Queries multi-select; each entry is a named rule evaluated on its own.
- Changing PDL here updates the shared definition for every task that still points at that id—plan reviews accordingly.
- Processing tasks use inline PDL instead; they do not replace this library, but the same language references apply.
Query composition
+ Task and + Query (with pickers) insert PDL from an existing task or saved query into the current editor.
| Behavior | Detail |
|---|---|
| Purpose | Reuse proven snippets instead of retyping; start from a task export or another library entry. |
| Result | Inserted text becomes editable; you can merge, trim, or extend before Save. |
| Source of truth | Only what appears in the PDL editor is persisted—helpers do not maintain a separate hidden body. |
| Patterns | Build composite detection steps, standardize headers, or align field names across a query library. |
Validation and execution behavior
| Topic | Behavior |
|---|---|
| Empty PDL | Save is blocked when the PDL body is empty. |
| Syntax | Deep validation depends on engine / build capabilities (CLI, CI, or padas-pdl tools where available). |
| Runtime | Invalid or non-matching PDL surfaces when tasks execute or when deployment-time checks run—behavior follows your Core version. |
| Downstream impact | Tasks that reference a broken query may fail to deploy, error at runtime, or drop matches depending on failure mode—test after edits. |
Operational guidance
- Use consistent naming so ids stay discoverable in task pickers and change tickets.
- Prefer one shared query over copy-pasting the same PDL into many tasks.
- Review detection logic on a cadence; saved queries are the natural audit surface.
- Keep descriptions meaningful for handoff between analysts and operators.
- After importing an exported configuration bundle, open Queries here to spot-check PDL payloads before relying on them in production tasks.
Do not delete a query while tasks or deployments still reference its query id.
Related pages
- Tasks — detection vs processing and query attachment
- Pipelines — workflow context
- Streams — stream wiring next to tasks
- Motion Engine TOML — operator defaults alongside saved objects
- PDL comprehensive examples
- Glossary