3.5.1.7. Find Matches With A Query Prefix

This does the following:

  • Get devices by hostname and add INCLUDE OUTDATED: to the beginning of the query built by the command.
  • This command builds a query for you, example: INCLUDE OUTDATED: (specific_data.data.hostname == regex("WIN.*", "i"))
$ axonshell devices get-by-hostname \
  --value "WIN.*" \
  --value-regex \
  --query-pre "INCLUDE OUTDATED:" \
  --export-file device.json \
  --export-overwrite

3.5.1.7.1. Notes

Note

This example uses the devices get-by-hostname command, but it will work for any get-by-.. command for the devices and users command groups with the exception of get-by-saved-query (which uses the query built in to the saved query).