Log to filesystem
Log to one or more files in the filesystem.
Filesystem
A file to log into.
Properties
Enable
Enable this logging destination.
- Data type: boolean
- Default:
true - Configuration
CLI: (cli)> config service syslog filesystem <index> enable
Filesystem
The filesystem containing the file.
- Data type: reference path
- References instances of: Storage / Filesystems
- Configuration
- Required
CLI: (cli)> config service syslog filesystem <index> filesystem
Filename
The name of the log file to write on the filesystem.
Leave the filename blank to have a one automatically generated based on the location of this configuration.
- Data type: string
- Configuration
- Optional
CLI: (cli)> config service syslog filesystem <index> filename
Format
The format of messages written to the file.
| Option | Label | Description |
|---|---|---|
msg | Message only | Write the contents of the message only. |
modern | Modern syslog | Write timestamp in RFC3339 format, hostname, message tag, and the message. |
traditional | Traditional syslog | Write the timestamp, hostname, message tag, and the message. |
- Data type: string select
- Default:
modern - Configuration
- Required
CLI: (cli)> config service syslog filesystem <index> format
Maximum size
Limit the log files to this number of bytes.
The combined log and rotated logs will be limited to this size.
- Data type: integer
- Units: bytes
- Default:
512000 - Minimum: 1000
- Configuration
- Required
CLI: (cli)> config service syslog filesystem <index> max-size
Minimum severity level
The minimum severity level to log.
All higher severity levels will also be logged.
| Option | Label |
|---|---|
debug | Debug |
info | Information |
notice | Notice |
warning | Warning |
error | Error |
critical | Critical |
alert | Alert |
emergency | Emergency |
- Data type: string select
- Default:
debug - Configuration
- Required
CLI: (cli)> config service syslog filesystem <index> level
