Server.Monitoring.ClientCount
Type: Server event (monitoring)
Emails deployment statistics, including the connected client count, on a configurable schedule.
By default, this artifact sends an email every hour summarizing the current state of the deployment.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
EmailAddress |
string | admin@example.com |
|
SkipVerify |
bool | If set we skip TLS verification. | |
CCAddress |
string | ||
Subject |
string | Deployment statistics for Velociraptor |
|
Period |
string | 3600 |
Source
Defined in artifacts/definitions/Server/Monitoring/ClientCount.yaml.
name: Server.Monitoring.ClientCount
description: |
Emails deployment statistics, including the connected client count,
on a configurable schedule.
By default, this artifact sends an email every hour summarizing the
current state of the deployment.
type: SERVER_EVENT
parameters:
- name: EmailAddress
default: admin@example.com
- name: SkipVerify
type: bool
description: If set we skip TLS verification.
- name: CCAddress
default:
- name: Subject
default: "Deployment statistics for Velociraptor"
- name: Period
default: "3600"
sources:
- query: |
LET metrics = SELECT * FROM Artifact.Server.Monitor.VeloMetrics()
SELECT * FROM foreach(
row={
SELECT * FROM clock(period=atoi(string=Period))
},
query={
SELECT * FROM mail(
to=EmailAddress,
cc=CCAddress,
subject=Subject,
period=60,
skip_verify=SkipVerify,
body=format(format='Total clients currently connected %v',
args=[metrics.client_comms_current_connections])
)
})