# Log formats and field maps

The server writes two kinds of record. Its own **log**, a line of text for everything it does, for people to read. And **events**, one structured record for each thing a security team wants to count: a login, a transfer, a ban. Events can be sent to a log server or a SIEM in four formats.

This page is the map: which field of an event is where, in each format. How to set up a target is in [Sending events to a SIEM](Logging-SIEM.md); the log itself is in [Logging](Logging.md).

## The server's own log line

```text
POST|11/21/2026 02:35:12.991|[HTTP:2_63679_rSt:alex:192.0.2.10] READ: *GET /files/ HTTP/1.1*
```

| Part | Is |
|---|---|
| the kind | what sort of line it is, such as `POST`, `STOR`, `ERROR`. Which kinds are written is chosen in [What is logged](Prefs-Logging-Events.md). |
| the time | in the server's own time zone |
| the text | for a line of a session, it starts with the protocol, the session's id, the user and the address in brackets |

The parts are separated by `|`. This form is also what a log target of the format **CrushMFT** sends.

## What an event is made of

Every event has the same fields, whatever the format. A field that does not apply is left out.

| Field | Is |
|---|---|
| time | when it happened |
| id | unique for every event, so that a record that arrives twice can be recognised |
| category and action | what happened: see [the events](#the-events) |
| outcome | `success`, `failure` or `unknown` |
| severity | 0 to 10. An ordinary event is 3. |
| message | a sentence for people |
| user | the account |
| address and port | where the connection came from |
| server port | the port of the server it came in on |
| protocol | FTP, SFTP, HTTPS and so on |
| session | the id of the session. It ties a login to everything the session did and to its logout. |
| connection group | the group of users the port belongs to |
| path, name, size | the file or folder |
| old path, old name | for a rename or a move: what it was called before |
| reason | why something failed or was refused |
| command, target | for an admin change: the command, and what it acted on. For an alert: the alert's name. |
| the host | the name of the server that made the event |

## The events

| Category | Actions |
|---|---|
| `auth` | `login`, `logout`, `password_change` |
| `file` | `upload`, `download`, `delete`, `rename`, `move`, `mkdir`, `share` |
| `admin` | `admin_command`: every admin command that changes something. And the access rules' own records, such as a role saved or a token issued. |
| `security` | `ip_ban`, `session_kick`, `alert`, and actions the access rules refused |
| `server` | `server_start`, `server_stop`, `listener_start`, `listener_stop` |
| `log` | a line of the server's own log, sent as an event. Only with **Also send the server log lines, one event each**. |

The class of an event, where a format has one, is the category and the action joined by a dot: `auth.login`, `file.upload`.

An admin command's outcome is `failure` when the access rules refused it, and otherwise `unknown`: the event says that the command was given, not how it ended.

## CEF

One line: a header of seven parts separated by `|`, then pairs of `key=value` separated by spaces.

```text
CEF:0|CrushFTP|CrushMFT|27.0.0_0|auth.login|Login|3|rt=1795179876718 externalId=mwozqxym-12 dvchost=files cat=auth act=login outcome=success suser=alex src=192.0.2.10 spt=51234 dpt=443 app=HTTPS cs1Label=sessionId cs1=2_63679_rSt
```

The header: `CEF:0`, the maker, the product, its version, the event class, a name for it, the severity.

| Event field | CEF key |
|---|---|
| time | `rt`, in milliseconds |
| id | `externalId` |
| the host | `dvchost` |
| category | `cat`, and the first half of the event class |
| action | `act`, and the second half of the event class |
| outcome | `outcome` |
| severity | the last part of the header |
| user | `suser` |
| address | `src`. If it is a name and not an address: `shost`. |
| port | `spt` |
| server port | `dpt` |
| protocol | `app` |
| name, path, size | `fname`, `filePath`, `fsize` |
| old name, old path | `oldFileName`, `oldFilePath` |
| reason | `reason` |
| message | `msg` |
| session | a custom string with the label `sessionId` |
| connection group | a custom string with the label `serverGroup` |
| command, target | custom strings with the labels `command` and `target` |
| for a log line: its kind and level | a custom string with the label `logTag`, and `cn1` with `cn1Label=logLevel` |

Custom strings are CEF's numbered fields: `cs1` with `cs1Label`, `cs2` with `cs2Label`, and so on. They are numbered in the order above, and only those that have a value are sent: read them **by their label**, not by their number. With every field present the session is `cs1`, the connection group `cs2`, the command `cs3` and the target `cs4`.

In the header, `\` and `|` are written with a `\` before them. In values, `\` and `=` are, and a line break is written as `\n`.

## LEEF

One line: a header of five parts separated by `|`, the separator `x09`, then pairs of `key=value` separated by tabs.

```text
LEEF:2.0|CrushFTP|CrushMFT|27.0.0_0|auth.login|x09|devTime=2026-11-21 02:35:12.991 +0000	devTimeFormat=yyyy-MM-dd HH:mm:ss.SSS Z	cat=auth	action=login	outcome=success	sev=3	usrName=alex	src=192.0.2.10
```

| Event field | LEEF key |
|---|---|
| time | `devTime`, with its form in `devTimeFormat`: `yyyy-MM-dd HH:mm:ss.SSS Z` |
| id | `eventUid` |
| the host | `identHostName` |
| category | `cat`, and the first half of the event id in the header |
| action | `action`, and the second half |
| outcome | `outcome` |
| severity | `sev`, 1 to 10 |
| user | `usrName` |
| address | `src`, and for a login also `identSrc`. If it is a name: `srcHost`. |
| port | `srcPort` |
| server port | `dstPort` |
| protocol | `appProto` |
| path, name, size | `resource`, `fileName`, `fileSize` |
| old path | `oldResource` |
| reason | `reason` |
| session | `sessionId` |
| connection group | `serverGroup` |
| command, target | `command`, `target` |
| for a log line: its kind and level | `logTag`, `logLevel` |
| message | `msg`, last |

## ECS (JSON)

One JSON object per line, in the field names of the Elastic Common Schema, version 8.11.

```json
{"@timestamp":"2026-11-21T00:35:12.991Z","ecs":{"version":"8.11.0"},"event":{"id":"mwozqxym-12","kind":"event","category":["authentication"],"action":"login","outcome":"success","dataset":"crushmft.audit","severity":3},"user":{"name":"alex"},"source":{"ip":"192.0.2.10","port":51234},"destination":{"port":443},"network":{"protocol":"https","transport":"tcp"},"crushftp":{"session_id":"2_63679_rSt"}}
```

| Event field | ECS field |
|---|---|
| time | `@timestamp` |
| id | `event.id` |
| category and action | `event.category` and `event.type`, in ECS's own words; `event.action` holds the action as it is |
| outcome | `event.outcome` |
| severity | `event.severity`, and as a word in `log.level`: info up to 3, notice at 4, warning from 5, error from 7, critical from 9 |
| reason | `event.reason` |
| message | `message` |
| user | `user.name` |
| address | `source.ip`. If it is a name: `source.address`. |
| port | `source.port` |
| server port | `destination.port` |
| protocol | `network.protocol`, in small letters, with `network.transport` `tcp` |
| path, name | `file.path`, `file.name`, and the folder in `file.directory` |
| size | `file.size` |
| a checksum, where the event has one | `file.hash.md5` |
| old path, old name | `crushftp.old_path`, `crushftp.old_name` |
| session | `crushftp.session_id` |
| connection group | `crushftp.server_group` |
| command, target | `crushftp.command`, `crushftp.target`. For an alert the name is also in `rule.name`. |
| the host | `host.hostname`, `observer.hostname` |
| for a log line: its kind and level | `crushftp.tag`, `crushftp.level` |

Always there:

| Field | Value |
|---|---|
| `ecs.version` | `8.11.0` |
| `event.kind` | `alert` for an alert or a ban, otherwise `event` |
| `event.dataset` | `crushmft.audit` for events, `crushmft.log` for log lines |
| `event.module`, `event.provider`, `log.logger` | `crushftp` |
| `observer.vendor`, `observer.product`, `observer.version`, `observer.type` | the maker, the product, the version, `file-transfer` |
| `service.name`, `service.type`, `service.version` | the product, `crushftp`, the version |
| `related.user`, `related.ip` | the user and the address again, as ECS wants them for searching |

What ECS has no field for is under `crushftp.`.

## OCSF (JSON)

One JSON object per line, in the Open Cybersecurity Schema Framework, version 1.3.0.

Each event is of an OCSF class:

| Event | Class | Activity |
|---|---|---|
| `auth.login` | Authentication, 3002 | Logon, 1 |
| `auth.logout` | Authentication, 3002 | Logoff, 2 |
| `auth.password_change` | Account Change, 3001 | Password Change, 3 |
| `file.upload` | File Hosting Activity, 6006 | Upload, 1 |
| `file.download` | File Hosting Activity, 6006 | Download, 2 |
| `file.delete` | File Hosting Activity, 6006 | Delete, 4 |
| `file.rename` | File Hosting Activity, 6006 | Rename, 5 |
| `file.move` | File Hosting Activity, 6006 | Move, 7 |
| `file.share` | File Hosting Activity, 6006 | Share, 12 |
| `file.mkdir` | File Hosting Activity, 6006 | Other, 99 |
| `admin.…` | API Activity, 6003 | Update, 3 |
| `security.…` | Detection Finding, 2004 | Create, 1 |
| `server.…_start` | Application Lifecycle, 6002 | Start, 3 |
| `server.…_stop` | Application Lifecycle, 6002 | Stop, 4 |
| a log line | Base Event, 0 | Other, 99 |

| Event field | OCSF field |
|---|---|
| time | `time`, in milliseconds |
| id | `metadata.uid` |
| category and action | `class_uid`, `class_name`, `category_uid`, `category_name`, `activity_id`, `activity_name`, and `type_uid`, which is the class number times 100 plus the activity |
| outcome | `status_id` and `status`: 1 Success, 2 Failure, otherwise Unknown |
| severity | `severity_id` and `severity`, in OCSF's steps |
| reason | `status_detail` |
| message | `message` |
| user | `actor.user.name`; for logins and password changes also `user.name` |
| address | `src_endpoint.ip`. If it is a name: `src_endpoint.hostname`. |
| port | `src_endpoint.port` |
| server port | `dst_endpoint.port` |
| protocol | `dst_endpoint.svc_name` and `service.name` |
| the host | `dst_endpoint.hostname` |
| session | `session.uid` |
| path, name | `file.path`, `file.name`, the folder in `file.parent_folder`, and `file.type` Folder or Regular File |
| size | `file.size` |
| command | for an admin change: `api.operation`, with `api.service.name` |
| an alert, ban or refusal | `finding_info.uid`, `finding_info.title`, and the target in `finding_info.desc` |
| a start or stop | `app.name`, `app.vendor_name`, `app.version` |
| connection group, target, old path, old name | under `unmapped`: OCSF has no place for them |
| for a log line: its kind and level | `unmapped.tag`, `unmapped.level` |

Always there: `metadata.version` `1.3.0`, `metadata.product.name`, `metadata.product.vendor_name`, `metadata.product.version`, and `metadata.log_name`, which is `crushmft.audit` for events and `crushmft.log` for log lines.

## Over syslog

When a target sends by syslog, each record is wrapped in a syslog line. The record of the format follows the syslog header:

```text
<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 externalId=mwozqxym-1 dvchost=files cat=server act=test outcome=success msg=Test record …
```

That line is the test record of a target as it arrived on a test server. The ways of sending and their settings: [Syslog](Logging-Syslog.md).

## Things to know

- **Empty fields are not sent.** A parser must not expect every key in every record.
- **More fields can follow.** Some events carry extras of their own, sent under their own names: in CEF as further custom strings, in LEEF as further pairs, in ECS under `crushftp.`, in OCSF under `unmapped`. A later version can add fields; build parsers that pass over what they do not know.
- **Passwords are never in an event.** File names, user names and addresses are: decide who may read the target. See [What a log may hold](Security-Log-Privacy.md).
- **Times.** CEF and OCSF carry the time as a number of milliseconds, ECS as a UTC time, LEEF as a text with its zone.

## Where this comes from

The field maps are read from the server's code for each format. The CEF line over syslog is a real record from a test server; the other example lines on this page are put together from the maps, with example values, and were not captured from a server.
