LogScale.Events.Clients
Type: Server event (monitoring)
Forwards selected client monitoring events to a LogScale ingestion endpoint.
NOTE: You must ensure you are collecting the target client event artifacts from the clients by adding them to the “Client Events” GUI.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
ingestApiBase |
string | https://cloud.community.humio.com/api |
API Base Url for LogScale server |
ingestToken |
string | Ingest token for API | |
tagFields |
string | Comma-separated list of field names to use as tags in the message; Can be renamed with |
|
numThreads |
int | 1 |
Number of threads to start up to post events |
httpTimeout |
int | 10 |
Timeout (in seconds) for http connection attempts |
batchingTimeoutMs |
int | 30000 |
Timeout (in ms) to batch events prior to sending |
eventBatchSize |
int | 2000 |
Count of events to batch prior to sending |
statsInterval |
int | 600 |
Interval to post statistics to log (in seconds, 0 to disable) |
debug |
bool | false |
Enable verbose logging |
Artifacts |
artifactset | Client artifacts to monitor |
Source
Defined in artifacts/definitions/LogScale/Events/Clients.yaml.
name: LogScale.Events.Clients
description: |
Forwards selected client monitoring events to a LogScale ingestion
endpoint.
NOTE: You must ensure you are collecting the target client event
artifacts from the clients by adding them to the "Client Events"
GUI.
type: SERVER_EVENT
parameters:
- name: ingestApiBase
description: API Base Url for LogScale server
type: string
default: https://cloud.community.humio.com/api
- name: ingestToken
description: Ingest token for API
type: string
- name: tagFields
description: Comma-separated list of field names to use as tags in the message; Can be renamed with <oldname>=<newname>.
default:
type: string
- name: numThreads
description: Number of threads to start up to post events
type: int
default: 1
- name: httpTimeout
description: Timeout (in seconds) for http connection attempts
type: int
default: 10
- name: batchingTimeoutMs
description: Timeout (in ms) to batch events prior to sending
type: int
default: 30000
- name: eventBatchSize
description: Count of events to batch prior to sending
type: int
default: 2000
- name: statsInterval
description: Interval to post statistics to log (in seconds, 0 to disable)
type: int
default: 600
- name: debug
description: Enable verbose logging
type: bool
default: false
- name: Artifacts
type: artifactset
artifact_type: CLIENT_EVENT
description: Client artifacts to monitor
sources:
- query: |
LET artifacts_to_watch = SELECT Artifact FROM Artifacts
WHERE log(message="Uploading artifact " + Artifact + " to LogScale")
LET events = SELECT * FROM foreach(
row=artifacts_to_watch,
async=TRUE, // Required for event queries in foreach()
query={
SELECT *, Artifact, timestamp(epoch=now()) AS timestamp
FROM watch_monitoring(artifact=Artifact)
})
SELECT * FROM logscale_upload(
query=events,
apibaseurl=ingestApiBase,
ingest_token=ingestToken,
threads=numThreads,
tag_fields=split(string=tagFields, sep=","),
batching_timeout_ms=batchingTimeoutMs,
event_batch_size=eventBatchSize,
http_timeout=httpTimeout,
debug=debug,
stats_interval=statsInterval)