Search tips for tokens
Syntax help is displayed in the UI for Asset tokens. A complete list of tokens for writing search queries is provided below.
Boolean Operator
Use this token to combine two search conditions so that both must match.
Example
Find an asset activated for the PC module and matching a specific host name.
sensor.activatedForModules: "PC" and asset.name: "host"
Use this token to combine two search conditions so that either can match.
Example
Find an asset activated for the PC module or matching a specific host name.
sensor.activatedForModules: "PC" or asset.name: "host"
Use this token to exclude assets that have the specified module activated.
Example
Find an asset that does not have the PC module activated.
not sensor.activatedForModules: "PC"
OCA Tokens
Use this token to search assets by hostname.
Example
Find an asset using its hostname.
asset.name: "hostTandem"
sensor.activatedForModulessensor.activatedForModules
Use this token to search assets by the module activated (provisioned) for them.
Example
Find an asset using its activated module.
sensor.activatedForModules: "PC"
asset.interface.addressasset.interface.address
Use this token to search assets by their IPv4 address.
Example
Find an asset using its IP address.
asset.interface.address: "10.23.44.23"
asset.createdDateasset.createdDate
Use a date range or specific date to define when assets were created.
Examples
Show assets created within certain dates
asset.createdDate:[2018-01-01 ... 2018-01-10]
Show assets created starting 2017-10-01, ending 1 month ago
asset.createdDate:[2017-10-01 ... now-1M]
Show assets created starting 2 weeks ago, ending 1 second ago
asset.createdDate:[now-2w ... now-1s]
Show assets created on a specific date
asset.createdDate:'2016-01-08'
Show assets created within last 30 days excluding day 30.
asset.createdDate>now-30d
Note: We recommend not to use the NOT operator in your range search to
form query like NOT asset.createdDate:[now-30d..now-2s]. See "QQL Best Practices" topic in the
Unified Dashboard Online Help.
Show assets created within last 30 days including day 30.
asset.createdDate>=now-30d
Show assets created which is older than last 30 days excluding day 30.
asset.createdDate<now-30d
Show assets created which is older than last 30 days including day 30.
asset.createdDate<=now-30d
asset.netbiosNameasset.netbiosName
Use this token to search assets by their NetBIOS name.
Example
Find an asset using its NetBIOS name.
asset.netbiosName: "netbios-test"
asset.interface.macAddressasset.interface.macAddress
Use this token to search assets by their MAC address.
Example
Find an asset using its MAC address.
asset.interface.macAddress: "00-14-22-01-23-45"
Use this token to search assets by their asset tag.
Example
Find an asset using its asset tag.
asset.tag.name: "OCA"
asset.lastUpdatedDateasset.lastUpdatedDate
Use a date range or specific date to define when the asset was last updated.
Examples
Show assets last updated within certain dates
asset.lastUpdatedDate:[2018-01-01 ... 2018-01-10]
Show assets last updated starting 2017-06-01, ending 3 months ago
asset.lastUpdatedDate:[2017-06-01 ... now-3M]
Show assets last updated starting 2 weeks ago, ending 1 second ago
asset.lastUpdatedDate:[now-2w ... now-1s]
Show assets last updated on a specific date
asset.lastUpdatedDate:'2016-01-08'
Show assets last updated within last 30 days excluding day 30.
asset.lastUpdatedDate>now-30d
Note: We recommend not to use the NOT operator in your range search to
form query like NOT asset.lastUpdatedDate:[now-30d..now-2s]. See "QQL Best Practices" topic in the
Unified Dashboard Online Help.
Show assets last updated within last 30 days including day 30.
asset.lastUpdatedDate>=now-30d
Show assets last updated which is older than last 30 days excluding day 30.
asset.lastUpdatedDate<now-30d
Show assets last updated which is older than last 30 days including day 30.
asset.lastUpdatedDate<=now-30d