Skip to content
Detection & ResponseMarkdown

Configuration reference

Every setting the realm's shared sensor configuration takes (folders to watch, logs to read, assessment and tamper-check schedules), what each does, and what is refused.

AvailableAPI

The realm’s group configuration is one text, in XML, that every sensor in the realm runs on top of its own defaults. This page lists what you can put in it: the folders file integrity watches, the logs the sensor reads, and when assessments and tamper checks run. Anything not listed here is refused or has no effect you can rely on.

  • Who: an administrator of the realm, in a group holding RealmOwner (or RealmViewer, which today can write it too; see Group configuration).
  • Where: the API, as Group configuration shows.
  • First: read the configuration as it is, so you can add to it rather than replace it.

The text is one or more <agent_config> blocks. Each block holds sections, and every section is optional. Blocks are read in order, so you can keep each change in a block of its own, and remove it later by removing the block.

<agent_config>
<syscheck>
<directories realtime="yes" check_all="yes">/opt/billing/config</directories>
</syscheck>
<localfile>
<location>/var/log/billing/app.log</location>
<log_format>syslog</log_format>
</localfile>
</agent_config>

A new realm’s configuration is empty: every device runs its defaults (see File integrity, Log collection) until you add to them.

SettingTakesWhat it does
<directories>Folders, comma-separated, or one per elementAdds the folders to those the sensor watches, with everything below them
realtime="yes" (on <directories>)yes or noReports a change in those folders as it happens, instead of at the next scan
check_all="yes" (on <directories>)yes or noRecords every checksum, the owner, the group, the permissions, the size and the time of each file
report_changes="yes" (on <directories>)yes or noFor text files, adds what changed in the file’s content to the alert (file.diff)
<ignore>A pathLeaves the file or folder out of what’s watched
<frequency>SecondsHow often the full scan runs; changes outside real-time folders surface at the next one
<scan_on_start>yes or noWhether a scan runs when the sensor starts

One <localfile> per log to read.

SettingTakesWhat it does
<location>A file path; * matches any part of a nameThe log file to read
<log_format>syslog (one event per line), json (one JSON object per line), journald (the Linux system journal; <location> is journald)How each event in the log is read

A log read from a command’s output is refused (see below).

SettingTakesWhat it does
<enabled>yes or noTurns assessment on or off
<interval>A time, such as 12h or 1dHow often the device’s policies are checked
<scan_on_start>yes or noWhether a check runs when the sensor starts
SettingTakesWhat it does
<disabled>yes or noTurns the checks off or on
<frequency>SecondsHow often the checks run

A write is checked before it goes anywhere, and refused with 400 and the reason:

RefusedWhy
A <command> or <full_command> element, anywhereIt would run a command on your devices
A <log_format> of command or full_commandIt would read a log from a command’s output
A module that runs commandsSame
A tag, comment or section left openThe rest of the text can’t be read
A setting the sensor doesn’t know, or a value it can’t takeThe answer names it and its line
More than 512 KB of textAnswered 413

When you save, each connected device receives the new configuration over its own connection, checks it, applies it and restarts its sensor; this usually takes a minute or two. A device that is offline gets it when it reconnects. To see what one device runs now, read its running configuration (see Device view).

LimitValue
Size of the configuration512 KB
Time for a change to reach a connected deviceUsually under two minutes
Configurations per realmOne, shared by every device in the realm
SymptomCauseFix
400 naming a lineA setting or value the sensor doesn’t takeFix the line the answer names, or remove it
400 “can’t run commands”A command, or a log read from a commandRemove it; there’s no way to run a command on a device from the realm
412Someone saved since you read itRead it again, redo your change, and save with the new revision
A folder isn’t in a device’s running configurationThe device hasn’t received the change, or is offlineCheck the device is active; restart its sensor (see Sensor actions)
A real-time folder reports only at scansThe folder didn’t exist on the device when the sensor startedCreate the folder, then restart the sensor

None yet. A configuration write isn’t recorded in the realm’s audit trail; keep the text you replaced (as Watch another folder on your devices does) so you can put it back.