Atlantiraptor Docs

version

Type: Function

Gets the version of a VQL plugin or function.

This is useful when writing portable VQL which can work with older versions of Velociraptor. When Velociraptor plugins evolve in an incompatible way their version is incremented. It is possible to cater for multiple versions in the VQL using an if() plugin.

For example the following can chose from a legacy query or a modern query based on the plugin version:

 SELECT * FROM if(
  condition=version(plugin="glob") >= 1,
  then=NewQuery,
  else=LegacyQuery)
Argument Type Description
function string
plugin string

Platforms: macOS, Linux, Windows