com.limdm.logging¶
Console: Log collection. Off unless an item enables it; see Log management for the whole data flow, storage, archive and privacy.
{"enabled": true, "journald": true, "exclude_units": ["systemd-logind.service"], "min_priority": "info",
"containers": true, "exclude_containers": ["*-tmp"], "files": ["/var/log/nginx/error.log"],
"exclude": ["healthcheck"], "mask": ["customer-[0-9]+"], "lines_per_second": 20, "mb_per_day": 100, "buffer_mb": 32}
| Field | Type | Rules |
|---|---|---|
enabled |
true or false | collect and ship logs; needs at least one source |
allow_personal |
true or false | also on devices marked personal (tag personal or attribute ownership=personal); without it those devices get the item switched off |
journald |
true or false | the systemd journal |
units, exclude_units |
list of text | journal units to include (empty: all) and exclude; * matches any text |
min_priority |
text | emerg, alert, crit, err, warning, notice, info (default) or debug: this priority and more severe ones, for every source |
containers |
true or false | Docker and Podman containers |
container_names, container_labels, compose_projects |
list of text | only containers whose name (* as wildcard), label (key=value) or compose project matches; none of them: all containers |
exclude_containers |
list of text | container names to leave out |
files |
list of text | absolute paths of plain text log files, at most 50, without wildcards, only below /var/log/, /srv/<name>/log/ or one of roots (File sources) |
roots |
list of text | further directories for files, at most 20: clean absolute paths at least two levels deep (/opt/app/logs, not /opt), never in a secret location. The agent reads them as root and ships them; saving needs four eyes approval when it is on |
include, exclude |
list of text | regular expressions (RE2) on the message: with include only matching lines are shipped, exclude drops matching lines |
mask_builtin |
true or false | default true: passwords, tokens, Authorization headers, private keys, JWTs, AWS access key IDs and credentials in URLs become *** |
mask |
list of text | further regular expressions; the matched text becomes *** |
lines_per_second |
number | 1 to 1000, default 20; bursts of ten seconds |
mb_per_day |
number | 1 to 10240, default 100 |
buffer_mb |
number | spool on disk while the server is not reachable, 1 to 1024, default 32; when full the oldest lines go first and are counted as dropped |
Not a list type: the item evaluated last wins. Collection starts at the end of each source: the agent does not ship the history that was there before. It never changes journald, Docker or Podman settings and never ships LiMDM's own log lines.
Field reference¶
Generated from the payload schema of the server (GET /api/v1/schemas/{type}), the same reference the console editor shows. Unknown fields are rejected.
com.limdm.logging¶
Console: Log collection. Ships journal, container and file logs to the server, filtered and masked on the device.
| Field | Type | Meaning | Limits |
|---|---|---|---|
enabled |
boolean | Collect logs Off by default. The agent never changes journald or Docker settings. | |
allow_personal |
boolean | Also on personal devices Devices tagged personal or with the attribute ownership=personal collect only with this switch. | |
journald |
boolean | systemd journal | |
units |
list of string | Only these units Empty: all units. * matches any text. | |
exclude_units |
list of string | Exclude units | |
min_priority |
string | Minimum priority Lines of this priority and more severe ones; default info. | one of "emerg" (emerg), "alert" (alert), "crit" (crit), "err" (err), "warning" (warning), "notice" (notice), "info" (info), "debug" (debug) |
containers |
boolean | Docker and Podman containers | |
container_names |
list of string | Only containers named * matches any text. Without names, labels and projects every container. | |
container_labels |
list of string | Only containers with label key=value | |
compose_projects |
list of string | Only compose projects | |
exclude_containers |
list of string | Exclude containers | |
files |
list of string | Log files Absolute paths, patterns with * and ? (/var/log/.log, /srv//logs/*.log) or directories ending in / for every file in them, below /var/log/, /srv/ |
|
roots |
list of string | Custom log directories Warning: the agent reads files below these directories as root and sends them to the server. Only directories that hold nothing but logs, at least two levels deep and with a path component named log or logs (for example /opt/app/logs, /data/nginx-log); secret locations are always refused. Saving needs four eyes approval when it is on. | |
include |
list of string | Only lines matching Regular expressions on the message. | |
exclude |
list of string | Drop lines matching Regular expressions on the message. | |
mask_builtin |
boolean | Built in masking Passwords, tokens, Authorization headers, private keys, credentials in URLs. | default true |
mask |
list of string | Mask Regular expressions; matched text becomes ***. | |
lines_per_second |
integer | Lines per second Average with bursts of ten seconds; default 20. | min 0; max 1000 |
mb_per_day |
integer | MB per day Default 100. | min 0; max 10240 |
buffer_mb |
integer | Offline buffer (MB) On disk while the server is not reachable; the oldest lines go first. Default 32. | min 0; max 1024 |
Example payload
{
"enabled": true,
"journald": true,
"exclude_units": [
"systemd-logind.service"
],
"min_priority": "info",
"containers": true,
"exclude_containers": [
"*-tmp"
],
"files": [
"/var/log/nginx/error.log"
],
"exclude": [
"healthcheck"
],
"mask": [
"customer-[0-9]+"
],
"lines_per_second": 20,
"mb_per_day": 100,
"buffer_mb": 32
}