Syslog#
Syslog is the way servers of all kinds send their logs to one place. Sending CrushMFT's log there has three uses: the logs of all your machines can be searched together, they are kept as long as the log server keeps them, and they are off the machine at once, where somebody who breaks into the file server cannot change them.
The settings are in Preferences, Logging, Log Targets. This page is about choosing them.
The choices#
What to send. A target's Format decides:
| Send | Format | For |
|---|---|---|
the lines of CrushMFT.log as they are |
CrushMFT debug log | a plain log server, where people search text |
| events, with fields | CEF, LEEF, JSON | a SIEM: see SIEM formats |
| both | a SIEM format with Also send the server log lines, one event each | when the SIEM is your only log store |
How to send.
| Protocol | Use it | |
|---|---|---|
| UDP | fast, and nothing tells the server whether a message arrived. Messages are lost when the network or the receiver is busy. | only inside one network, for logs you can afford to lose |
| TCP | arrives, in order, or the server knows it did not | inside your own network |
| TLS | TCP, encrypted, and the receiver proves who it is | whenever the network between is not yours alone |
The usual ports are 514 for UDP and TCP, and 6514 for TLS.
Which header. RFC 5424 is the current form and carries exact times with their time zone. RFC 3164 (BSD) is the old one, for receivers that know nothing else.
How messages are told apart, on TCP and TLS: Octet counting is the standard for TLS and safe for records with line breaks in them; Newline after each message is what many simple receivers expect. If the receiver shows several records run together, or cut in the middle, this is the setting to change.
Setting one up#
- In Preferences, Logging, Log Targets, press Add.
- Send to: Syslog. Host and Port of the receiver.
- Protocol, and for TLS leave verify the host name in the receiver's certificate on.
- Format: what the receiver reads.
- Send Test Record, and look for it at the receiver:
<134>1 2026-11-20T15:04:36.727+02:00 files CrushMFT - - - CEF:0|CrushFTP|CrushMFT|27.0.0_0|server.test|Test|3|rt=1795179876718 … msg=Test record from CrushMFT on files (Preferences, Logging, Log Targets)
- Save. The target is in use within seconds, without a restart.
SUCCESS: test record sent (syslog, cef). UDP cannot confirm delivery: check the receiver.
Take that sentence seriously: with UDP, "sent" is all the server can know.
Two receivers#
Host takes several, separated by commas, each with its own port if needed: a.example.com:6514, b.example.com:6514. Every record goes to all of them. Or make two targets, when the two shall get different formats: lines to the log server, CEF to the SIEM.
Facility and name#
| Setting | Is | Unless you change it |
|---|---|---|
| Facility | the drawer the receiver files the messages in: LOCAL0 to LOCAL7, AUTH, DAEMON, FTP, AUDIT … |
LOCAL0 |
| App name | the name the messages carry | CrushMFT |
Give each server its own app name, or let the receiver tell them apart by host name, when several CrushMFT servers send to one place.
Long records#
Max message length, 8192 bytes unless you change it. A log line that is longer is split into several messages; a SIEM record that is longer is cut. Old UDP receivers take 1024 or 2048 bytes: if records arrive cut off, raise the receiver's limit, or lower this one to match it, or use TCP.
When the receiver is down#
The server does not wait for a log target. Each target has a queue of 10,000 records and sends from it in the background.
- A short outage is bridged by the queue.
- A long one fills it. Further records for that target are dropped and counted. The server, the log file and the other targets are not affected.
The counts are in the metrics: crushmft_log_target_records_total with result="dropped", crushmft_log_target_queued, and crushmft_log_target_error. Put an alarm on the last one in your monitoring.
CrushMFT.log on the server's disk has the lines that were dropped on the way.
Things to know#
- What a target gets follows the log's own settings, for the debug format: the kinds that are switched off under What is logged and the lines the filter leaves out are not sent either. Events in a SIEM format do not depend on them.
- TLS with a private authority. The receiver's certificate is checked like any outgoing connection of the server: see Certificate pinning.
- In a cluster, each server sends its own. The host name in each message says which.
- A DMZ server has its own log targets, or passes its lines inward: see Logging overview.
- The integrity chain of the activity record is sent as an event once a day. A log server that keeps it holds proof that the record was not changed later: Integrity.