Skip to main content
This page is the canonical reference. Every field name and operator was verified against the live product autocomplete and tested with running queries.

Grammar

In plain English: a query is one or more field:value clauses joined by AND / OR, optionally prefixed with NOT. Field names can be dotted (system.crowdstrike.deployed). Values are typed — strings, booleans, enums, or relative dates like now-7d. Concrete examples:
  • os:Windows — one clause
  • os:Windows AND tags:End-User — two clauses joined by AND
  • tags:End-User AND NOT system.crowdstrike.deployed:true — three-clause query with negation
  • lastOnline:now-7d — relative time (devices seen in the last 7 days)
The formal grammar (EBNF) — useful as a reference for tooling, but the four examples above cover real-world usage:
Read each line as a definition:
  • Query is one Clause, followed by zero or more Connector + Clause pairs
  • Clause is either field:value or NOT followed by another clause
  • Connector is the literal word AND or OR
  • Field is a dotted identifier path (hostName, system.crowdstrike.deployed)
  • Value is one of the supported types
  • Duration is now- followed by a number and a unit suffix (h, d, w, y)

Operators

There is no =, <, >, <=, >=, contains, starts with, ends with, IN, or is empty operator. The grammar is intentionally minimal — composition is via AND / OR / NOT.

Value types

Confirmed top-level fields

These are the device fields surfaced by the search bar’s autocomplete on /devices. Field names, types, and descriptions are taken verbatim from the in-product hints.

Identity & basics

Time fields

User association

Location

Metadata (hardware, identifiers)

All metadata.* fields are strings:

Tags

Tag values are whatever you’ve defined in Settings → Tags. For example: End-User, EMEA, NA, APAC, Mac, BYOD, Server, VM, Stock.

Nested collections

These accept dot-notation drill-down or specialised query forms:

Vitals (system.* prefix)

Each connected integration is exposed as a prefix with four boolean sub-fields:
Integration prefixes include: Your tenant’s set depends on which integrations are connected.

Device-type values

metadata.device_type is an enum, but values are tenant-defined rather than universal. For example:
  • EndUser
  • EndUser - EOL
  • EndUser - Legacy
  • Macs - OS X
  • Windows Server
  • Linux
  • Unmanaged (BYOD) - Default Naming Convention
  • Unmanaged - Review (potential corportate)
Your tenant’s list may differ. Use autocomplete (metadata.device_type: and look at suggestions) to see your tenant’s values.

Time values

The autocomplete after : on a time field offers: How time matching is interpreted by the system (within range vs exact) is not exposed in autocomplete. Test with known data before relying on it in saved views.

Verified test results

Example queries (with the Active filter applied). Counts are illustrative and will vary by tenant:

Worked examples

End-User devices that should have CrowdStrike but don’t.

Saved views

Build a query → click the floppy icon in the footer → name → choose visibility (Private / Team / Everyone). Saved views appear in the Default View ▾ dropdown top-right and are the basis for Scheduled Reports.

What’s not in the grammar

Tested against autocomplete and Enter-submit. The following patterns either silently don’t filter or aren’t suggested:
  • Comparison operators <, >, <=, >=
  • contains, starts with, ends with
  • IN (...) / NOT IN
  • is empty / is not empty
If you need expression power beyond AND/OR/NOT over field:value, use the API.

See also

Query Language tutorial

Introductory walkthrough

Devices

Where you’ll write most queries

Tags & Logic Engine

Same syntax drives tag rules