Atlantiraptor Docs

Server.Utils.CollectClient

Type: Server

Automates the full collection workflow of a specified artifact: schedule, wait, and retrieve results from a single client.

This artifact simplifies collecting from a specific client by performing all steps automatically:

  1. The collection will be scheduled.
  2. The artifact will wait for the collection to complete
  3. The results from the collection will be displayed.

Parameters

Name Type Default Description
ArtifactName string Generic.Client.Info
Client string C.1234 A client ID or a Hostname
Parameters json {} A key/value JSON object specifying parameters for the artifact

Source

Defined in artifacts/definitions/Server/Utils/CollectClient.yaml.

name: Server.Utils.CollectClient
description: |
  Automates the full collection workflow of a specified artifact:
  schedule, wait, and retrieve results from a single client.
  
  This artifact simplifies collecting from a specific client by
  performing all steps automatically:

  1. The collection will be scheduled.
  2. The artifact will wait for the collection to complete
  3. The results from the collection will be displayed.

type: SERVER

parameters:
  - name: ArtifactName
    default: Generic.Client.Info
  - name: Client
    description: A client ID or a Hostname
    default: C.1234
  - name: Parameters
    default: "{}"
    description: A key/value JSON object specifying parameters for the artifact
    type: json

sources:
  - query: |
      -- Find a client to collect from by applying the search
      -- critertia and picking the first hit
      LET Clients = SELECT client_id FROM clients(search=Client) LIMIT 1
      LET client_id <= Clients[0].client_id

      -- If we found something then schedule the collection.
      LET collection <= if(condition=client_id,
          then=collect_client(client_id=client_id,
                              artifacts=ArtifactName, env=Parameters),
          else=log(message="No clients found to match search " + Client) AND FALSE)

      -- Wait for the collection to finish - if the client is
      -- currently connected this wont take long
      LET FlowResults <= SELECT * FROM if(condition=collection,
      then={
         SELECT * FROM watch_monitoring(artifact='System.Flow.Completion')
         WHERE FlowId = collection.flow_id
         LIMIT 1
      })

      -- Collect the results
      SELECT * FROM foreach(row=FlowResults[0].Flow.artifacts_with_results,
      query={
           SELECT *, _value AS Source, client_id
           FROM source(client_id=client_id, flow_id=collection.flow_id, artifact=_value)
      })

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.