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 compute container <key> log filesystem <index> enable

Filesystem

The filesystem containing the file.

  • Data type: reference path
  • References instances of: Storage / Filesystems
  • Configuration
  • Required

CLI: (cli)> config compute container <key> log 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 compute container <key> log filesystem <index> filename

Format

The format of messages written to the file.

OptionLabelDescription
msgMessage onlyWrite the contents of the message only.
modernModern syslogWrite timestamp in RFC3339 format, hostname, message tag, and the message.
traditionalTraditional syslogWrite the timestamp, hostname, message tag, and the message.
  • Data type: string select
  • Default: msg
  • Configuration
  • Required

CLI: (cli)> config compute container <key> log 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 compute container <key> log filesystem <index> max-size