Connect servers and network devices
A bank that has no monitoring tool on a server, or wants a second source next to it, can send the server’s logs and metrics straight to MSN. MSN stores them tamper-evident, forwards critical ones to AVACOM as alerts, and AVACOM reads them as evidence when it writes an incident’s RCA.
The AVACOM collector bundle does the collecting. It is a set of configuration files in msn/agents/otel/ for the
OpenTelemetry Collector Contrib (Apache-2.0), the free, standard collector
that banks already find in their monitoring stacks, used unmodified from its official packages. SNMP traps go through
Telegraf (MIT), because the collector has no trap
receiver. Nothing is written by hand for each system: each kind of source is a receiver the bank switches on.
What to use
Section titled “What to use”Every host runs base.yaml (sending to MSN, queue, retries) plus the files for what it is.
| Host | Files | Logs | Metrics, once a minute | Status |
|---|---|---|---|---|
| Windows server | windows.yaml |
System, Application and Security event logs | CPU, committed memory, disk used and latency, CPU queue, network | Tested live on Windows 11 |
| Windows Event Forwarding collector | windows.yaml |
Forwarded events, with each server as host | Receiver tested; a subscription not yet (setup) | |
| Linux server | linux.yaml, journald.yaml |
Authentication log, application logs in /var/log/apps/<service>.log, the journal |
CPU, memory, load per CPU, filesystems, disk and network I/O, network errors | Tested live (journal: configuration validated) |
| PostgreSQL | postgresql.yaml |
pgaudit audit log | Connections, commits, rollbacks, deadlocks, database size | Tested live |
| SQL Server | sqlserver.yaml |
SQL Server Audit, through the Windows event logs | Connections, lock waits, buffer cache, batch requests, transaction log used | Configuration validated |
| Oracle Database | oracle.yaml |
Unified auditing, through syslog | Sessions, processes, tablespaces, rollbacks, deadlocks | Configuration validated |
| Network devices | network.yaml |
Syslog relay (for devices that cannot reach MSN) | SNMP: interface status, errors, traffic. NetFlow: bytes, packets and flows per exporter and protocol | Tested live (simulated switch and flows) |
| Network devices | telegraf-traps.conf |
SNMP traps (linkDown, linkUp, …) | Tested live | |
| Network devices | none | Syslog straight to MSN on port 5514 | Tested live |
Banks that already run Fluent Bit or Vector can go on with them: msn/agents/alternatives/ has tested configurations that
send the same records to MSN’s /v1/events. The bundle is the supported way; it is one program and one mapping for
every kind of source, with official packages for Windows and Linux.
What the records look like
Section titled “What the records look like”The collector sends OTLP (OpenTelemetry’s protocol) to MSN’s /v1/otlp endpoint, and MSN turns each log record into
an event and each measurement into a performance record, with:
- host: the server or device (
host.name): a Windows event’s computer, a journal entry’s host, a switch’s sysName, a NetFlow exporter’s address; - service: what wrote it (an event’s provider,
sshd, the application file’s name,postgres,snmp); - severity: the syslog names,
emergencytodebug, from the event’s level, journald’s priority, an application’s JSONlevel, the syslog priority; a failed sign-in or a locked account is a warning; - category:
authfor sign-ins,securityfor audit and the rest of the Windows Security log,application,database,networkfor relayed syslog and traps,performancefor measurements,systemfor the rest; - attributes.module: the receiver that collected it (
windows_event_log,host_metrics,snmp,netflow).
A measurement carries its metric, value, unit and threshold, the shape AVACOM turns into metric series:
{"category": "performance", "service": "host-metrics", "host": "lnx-cbs-app-08", "severity": "critical", "action": "filesystem.used_pct", "message": "filesystem.used_pct /var/lib/cbs 97% (threshold 90)", "attributes": {"metric": "filesystem.used_pct", "value": 97.0, "unit": "%", "threshold": 90, "critical": 95, "mountpoint": "/var/lib/cbs", "module": "host_metrics"}}A reading is a warning at its threshold and critical at its critical level (a disk or filesystem 95 % full, memory
98 %), and MSN forwards critical records to AVACOM as alerts. The thresholds are in the bundle’s files
(msn.threshold, msn.critical).
The bundle sends at most 500 records a request. MSN takes up to twice MSN_MAX_BATCH (1,000) and 4 MiB once
inflated, refuses anything larger before reading it, writes each request whole or not at all, and limits each stream to
MSN_MAX_RECORDS_PER_MINUTE (30,000) records a minute: above it the collector is told to wait (429) and resends.
While MSN is unreachable, records wait in a queue on disk and are retried for up to four hours.
Issue a key
Section titled “Issue a key”One ingest key per host (each host is its own stream). With the MSN admin key:
curl -X POST https://msn.bank.internal/v1/keys -H "Authorization: Bearer $MSN_ADMIN_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "win-sql-01", "role": "ingest", "stream": "win-sql-01"}'The answer holds the key (msn_...) once; MSN stores only its hash. The collector reads it from a file
(MSN_INGEST_KEY_FILE) that only it can read, never from its command line or environment.
Install
Section titled “Install”-
Windows. Copy
msn/agents/otel/andmsn/agents/install/windows/to the server and, as an administrator:Terminal window .\Install-AvacomCollector.ps1 -MsnEndpoint https://msn.bank.internal -IngestKeyFile D:\keys\win-sql-01.key -Sources windows,sqlserverThe script takes the official
otelcol-contribMSI, checks it against the SHA-256 pinned in the script for that version, installs it (a service running as LocalSystem), copies the bundle toC:\ProgramData\AVACOM\collector, writes the key there and starts the service. It refuses that folder, or a parent of it, when someone other than SYSTEM or Administrators owns it (whoever owns it could read the key or change what the service loads), makes it owned by Administrators and open to SYSTEM and Administrators only, and checks that again before writing the key. The endpoint must behttps://.-WhatIflists what it would do and does nothing, a download included;-DownloadOnly -StageDir D:\stagefetches and checks the MSI and the configuration and installs nothing. For a server without internet access, give it the MSI with-MsiPath: it is checked against the pin the same way. -
Linux. With Ansible (the role
avacom_collectorinmsn/agents/install/ansible/,ansible.builtinmodules only):Terminal window ansible-playbook -i inventory avacom-collector.yml --ask-vault-passThe role downloads the official
otelcol-contrib.debor.rpm(or copies it from the controller withavacom_collector_package_src, for a server without internet access), checks it against the SHA-256 pinned in the role for that version and architecture, installs it, copies the bundle to/etc/otelcol-contrib/avacom, writes the key (mode 0640, groupotelcol-contrib), checks the configuration withotelcol-contrib validateand starts the service. The endpoint must behttps://. Choose the files withavacom_collector_sources(defaultlinuxandjournald). The role writes each setting quoted, so a value cannot add another. On RHEL,/var/log/secureis readable by root only: give the collector an ACL (setfacl -m u:otelcol-contrib:r /var/log/secure, and a default ACL on/var/logso it survives log rotation). -
Network devices. On one collector host per site, the role with
avacom_collector_sources: [network], the device and community inavacom_collector_env(SNMP_DEVICE,SNMP_COMMUNITY,SNMP_INTERFACES), andavacom_collector_traps: truefor Telegraf and traps (seeavacom-collector.yml). The listeners take the devices only:Setting For Example COLLECTOR_LISTEN_ADDRESSNetFlow (UDP 2055) and the syslog relay (UDP and TCP 5514) 10.20.0.15, the collector’s address on the device networkNETWORK_SOURCESThe devices whose NetFlow and syslog are taken, a regular expression with dots as [.]^10[.]20[.]0[.]TRAP_LISTEN_ADDRESSTraps (UDP 162), in avacom_collector_traps_env10.20.0.15SNMP_TRAP_SOURCESThe devices whose traps are taken, a glob 10.20.0.*or{10.20.0.*,10.21.0.5}Without them the listeners take only 127.0.0.1, and the installers refuse the network source until they are set. Anything else is dropped on arrival. Point the devices’ NetFlow at UDP 2055 and their traps at UDP 162 on that host. Devices that can reach MSN send syslog to it directly (port 5514, from a network in
MSN_SYSLOG_ALLOWED_NETWORKS); others send it to the collector’s relay on port 5514.
Checking the packages
Section titled “Checking the packages”Both installers pin the SHA-256 of each official package for the version they install (avacom_collector_sha256 in
the role’s defaults, $PinnedSha256 in the PowerShell script): a checksum published beside the package would only
prove it came from the same place. A package that differs, or a version with no pin, is not installed. Each pin was
checked against the release’s sigstore bundle; to add a version, check it the same way and add its SHA-256:
cosign verify-blob --new-bundle-format --bundle otelcol-contrib_0.162.0_linux_amd64.deb.sigstore.json \ --certificate-identity-regexp '^https://github.com/open-telemetry/opentelemetry-collector-releases/' \ --certificate-oidc-issuer https://token.actions.githubusercontent.com otelcol-contrib_0.162.0_linux_amd64.debsha256sum otelcol-contrib_0.162.0_linux_amd64.debThe project signs its releases with sigstore, not with an RPM key, so on RHEL dnf installs the checked file without
a GPG check.
Least privilege
Section titled “Least privilege”-
Linux. The collector runs as
otelcol-contrib. The role adds it toadmonly on Debian and Ubuntu whenlinuxis a source (/var/log/auth.logisroot:adm0640 there), and tosystemd-journalonly whenjournaldis (the journal is readable only by root and that group). Telegraf binds UDP 162 through a systemd drop-in (AmbientCapabilities=CAP_NET_BIND_SERVICE), not a capability on its binary. -
PostgreSQL. pgaudit logs statements as written. Before a line leaves the server the bundle masks the value after
PASSWORDand every literal of anALTER/CREATE ROLEorUSERstatement as'***'. Set passwords with\passwordin psql anyway (it sends a SCRAM hash): the server’s own log is not masked. -
Windows. The MSI’s service runs as LocalSystem. It can run as its virtual account instead: the Event Log Readers group reads the System, Application and Security logs, Performance Monitor Users the counters. Not tested yet; running the installer again resets the folder to SYSTEM and Administrators, so grant the account again after.
Terminal window sc.exe config otelcol-contrib obj= "NT SERVICE\otelcol-contrib"Add-LocalGroupMember -Group 'Event Log Readers' -Member 'NT SERVICE\otelcol-contrib'Add-LocalGroupMember -Group 'Performance Monitor Users' -Member 'NT SERVICE\otelcol-contrib'icacls C:\ProgramData\AVACOM\collector /grant "NT SERVICE\otelcol-contrib:(OI)(CI)RX"icacls C:\ProgramData\AVACOM\collector\data /grant "NT SERVICE\otelcol-contrib:(OI)(CI)M"Restart-Service otelcol-contrib
Windows Event Forwarding
Section titled “Windows Event Forwarding”With many Windows servers, Windows Event Forwarding sends their event logs to one collector server, and the bundle
there reads its Forwarded Events log: no agent on each server. Setting up the subscription changes system settings
(the Windows Event Collector and WinRM services, Group Policy), so do it with the server’s administrators. The steps,
with a ready subscription file, are in msn/agents/windows-event-forwarding.md. A forwarded event names its server
as that server reports it: allow only a group of the servers that should forward (the file’s
AllowedSourceDomainComputers), never all domain computers.
See it working
Section titled “See it working”msn/agents/demo/ runs, next to the local AVACOM stack:
lnx-cbs-app-07, a Linux server with Fluent Bit and Vector, andlnx-cbs-app-08(profileotel), the same server with the collector bundle: sign-ins and application logs, then the data filesystem fills to 97 % and postings halt;sw-core-dc1-02, a core switch: its uplink flaps (syslog and SNMP traps) and its port-channel goes down;- profile
network:snmp-simanswering SNMP as the switch,netflow-gensending NetFlow, the network collector and Telegraf for traps.
cd msn/agents/demo./setup.sh # issues the ingest keys into .env and keys/ (git-ignored)docker compose up -d --build # the server and the switchdocker compose --profile otel --profile network up -d # the collector bundle and the network labdocker compose --profile otel --profile network down # stopThen open Agents in AVACOM’s sidebar, under Providers (NOC users can open it too). It lists every stream of the
connected MSN, one row each: its kind (server agent, network collector, SNMP traps or syslog device), how many
records it has sent, when it last sent, and Healthy or Stale. A server with the collector bundle, or a
network collector, is stale after 15 minutes without records (AVACOM_AGENTS_STALE_MINUTES on the API). SNMP traps,
syslog devices and servers that send only logs (Fluent Bit, Vector) are stale after 24 hours, since they send only
when something happens. The page asks MSN again every 30 seconds.
Two kinds of stream are listed apart, under Not agents, and never counted or judged stale: AVACOM’s audit trail
of approved fixes (avacom-changes, the stream the MSN connection’s audit key writes to) and drills or tests, whose
stream names start with drill-, rehearsal- or test-. Name a drill’s ingest key’s stream that way.
What is tested
Section titled “What is tested”- Live, on 2026-10-27, against MSN with its OTLP endpoint:
- Windows 11: the System and Application event logs and the performance counters, with the portable
otelcol-contrib.exe(no service installed); the ForwardedEvents receiver starts. The Security log needs an administrator, as the service has. - Linux (a container): the authentication and application logs and host metrics; the bundle installed by the Ansible role on Debian 13 from the official package.
- PostgreSQL 16: metrics and pgaudit lines; on 2026-10-28, role and password statements reach MSN masked.
- Network: SNMP polling of a simulated switch (snmpsim), NetFlow v5 aggregated per minute, SNMP traps through Telegraf, the syslog relay; on 2026-10-28, with source lists that left the devices out, none of their NetFlow, syslog or traps arrived.
- Windows 11: the System and Application event logs and the performance counters, with the portable
- Validated with
otelcol-contrib validate:journald.yaml,sqlserver.yaml,oracle.yaml. - Checked without installing, on 2026-10-28: the pins of the MSI and the
.debagainst their sigstore bundles (cosign); the Ansible role on Debian 13 from a local package, and its refusals (http, a package that differs from its pin, a version without one, the network source without its listen settings); the Windows installer’s refusals (the same, and a folder a user owns) and-WhatIf(nothing downloaded) on Windows 11, inmsn/tests/test_installers.py. - Not tested yet: the Windows installer’s install step, the virtual service account, a Windows Event Forwarding subscription, SQL Server and Oracle against live databases, SNMPv3 traps, IPFIX, Telegraf installed by the role, TLS to MSN.