Defining Services

Scouter Analytics reads service definitions from /usr/share/scouter/analytics/services.d/*.conf and /etc/scouter/analytics/services.d/*.conf on startup to create services.

An example service is a .conf file contains the service definition, and any matchers that permit select domains to be recorded

[Service]
Name=example.com
[Matcher]
Type=wildcard
Value=*.example.com
[Matcher]
Type=exact
Value=example.com

Create a directory to collate these services and write your first service definition into the directory

mkdir -p /etc/scouter/analytics/services.d
vim /etc/scouter/analytics/services.d/example.conf

Mount the configuration you just defined on your host into scouter-analytics.service with a drop-in unit

echo [Service]\nBindReadOnlyPaths=/etc/scouter/analytics/services.d | systemctl edit --stdin scouter-analytics

Reload the service manager and cat the unit to see if the BindreadOnlyPaths directive has been set:

systemctl daemon-reload
systemctl cat scouter-analytics

Restart scouter-analytics to create your services

systemctl restart --no-block scouter-analytics; journalctl -fu scouter-analytics