> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/use-octoxlabs/queries.md).

# Queries

Find groups of assets with a query, then save it so charts, reports, profiles, policies and workflows can reuse it.

A query is a filter on one inventory, for example "Windows servers that CrowdStrike does not see". You write it as text in the search box of an inventory, or build it row by row in the **Query Wizard**. Once a query returns what you want, save it with **Save As**. A saved query keeps its name, its text, its tags, whether it is public, the columns and sorting you had, and the number of assets it matched in the latest completed discovery.

Saved queries are shared building blocks. Charts, widgets, asset profiles, security policies, scheduled reports and Action Center workflows can all use one. Saved queries are listed per inventory under **Inventories** > the inventory > **Saved Queries**. The syntax is described once, in the OctoXLabs Query Reference.

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Create and Save Queries</strong></td><td>Build a query with the Query Wizard and save it.</td><td></td></tr><tr><td><strong>Modify Existing Queries</strong></td><td>Run, edit, copy, organize and delete saved queries.</td><td></td></tr><tr><td><strong>Query Examples</strong></td><td>Copy ready-made queries for common questions.</td><td></td></tr><tr><td><strong>OctoXLabs Query Reference</strong></td><td>Look up operators, fields and syntax.</td><td></td></tr></tbody></table>
