33. OpenBSD
NXLog can collect various types of system logs on OpenBSD platforms. For deployment details, see the supported OpenBSD platforms, OpenBSD installation, and monitoring.
- Basic Security Mode (BSM) Auditing
-
The im_bsm module collects logs generated by the BSM auditing system.
NoteOpenBSD does not support BSM Auditing. - Custom Programs
-
The im_exec module allows log data to be collected from custom external programs.
- DNS Monitoring
-
Logs can be collected from BIND 9.
- File Integrity Monitoring
-
File and directory changes can be detected and logged for auditing with the im_fim module. See File Integrity Monitoring.
Example 170. Monitoring File IntegrityThis example monitors files in the
/etc
and/srv
directories, generating events when files are modified or deleted. Files ending in.bak
are excluded from the watch list. - Kernel
-
Logs from the kernel can be collected directly with the im_kernel module. See Linux System Logs.
NoteThe system logger may need to be disabled or reconfigured to collect logs with im_kernel. To completely disable syslogd on OpenBSD, run rcctl stop syslogd
andrcctl disable syslogd
.Example 171. Collecting Kernel LogsThis configuration reads events from the kernel.
nxlog.conf1 2 3
<Input kernel> Module im_kernel </Input>
- Local Syslog
-
Messages written to
/dev/log
can be collected with the im_uds module. Events written to file in Syslog format can be collected with im_file. In both cases, the xm_syslog module can be used to parse the events. See the Linux System Logs and Collecting and Parsing Syslog sections for more information.Example 172. Reading Syslog Messages From FileThis example reads Syslog messages from
/var/log/messages
and parses them with the parse_syslog() procedure. - Log Files
-
The im_file module can be used to collect events from log files.
- Process Accounting
-
The im_acct module can be used to gather details about who runs what processes.