SWQL (SolarWinds Query Language)

Last updated: 2026-05-24

SWQL is SolarWinds' SQL-like query language for the Orion data model. It is what the SWIS API accepts and what powers every custom report, alert trigger, and integration.

What it is

SolarWinds Query Language (SWQL) is a SQL-like query language for the SolarWinds Orion data model. It's what the SWIS API accepts. Any custom report in Orion, any alert trigger condition, any third-party integration that reads Orion data, every screen in PocketNOC — they're all built on SWQL queries under the hood.

SWQL syntax looks very close to standard SQL with a few extensions for the entity-relationship model Orion uses. Example:

SELECT Caption, Status, IPAddress, ResponseTime
FROM Orion.Nodes
WHERE Status = 2
  AND ResponseTime > 100
ORDER BY ResponseTime DESC

That's "show me all critical nodes with response time over 100ms, slowest first." If you've written SQL, you can write SWQL inside 30 minutes.

Differences from standard SQL

Where to write SWQL

SWQL in PocketNOC

PocketNOC's queries are baked into the app at build time — there is no user-facing SWQL editor in the mobile UI. Each screen maps to one or more SWQL queries that pull just the data the screen needs.

See also