Skip to content

journald

Type definitions for journald.conf — the systemd-journald configuration file.

import type { JournaldConf } from '@sysopkit/linux/systemd';
type JournaldConf = {
Journal: {
Storage?: 'volatile' | 'persistent' | 'auto' | 'none';
Compress?: string;
Seal?: 'yes' | 'no';
SplitMode?: 'uid' | 'none';
RateLimitIntervalSec?: number;
RateLimitBurst?: number;
SystemMaxUse?: string;
SystemKeepFree?: string;
SystemMaxFileSize?: string;
SystemMaxFiles?: number;
RuntimeMaxUse?: string;
RuntimeKeepFree?: string;
RuntimeMaxFileSize?: string;
RuntimeMaxFiles?: number;
MaxFileSec?: string;
MaxRetentionSec?: string;
SyncIntervalSec?: number;
ForwardToSyslog?: 'yes' | 'no';
ForwardToKMsg?: 'yes' | 'no';
ForwardToConsole?: 'yes' | 'no';
ForwardToWall?: 'yes' | 'no';
ForwardToSocket?: string;
TTYPath?: string;
LineMax?: string;
MaxLevelStore?: string;
MaxLevelSyslog?: string;
MaxLevelKMsg?: string;
MaxLevelConsole?: string;
MaxLevelWall?: string;
MaxLevelSocket?: string;
ReadKMsg?: 'yes' | 'no';
Audit?: 'yes' | 'no' | 'keep';
};
};
OptionDescription
StorageWhere to store journal data. "persistent" stores on disk, "volatile" uses memory only.
SystemMaxUseMaximum disk space for persistent journal. Accepts K/M/G suffixes.
ForwardToSyslogForward log messages to traditional syslog daemon.
ForwardToKMsgForward messages to kernel log buffer.
RateLimitIntervalSec / RateLimitBurstRate limiting: interval in seconds and max messages per interval.
CompressEnable compression for large journal entries (default: yes).