Skip to main content

Syslog

tip
  • AlpineLinux 默认 busybox syslog
  • 如果需要使用更多功能,建议选择 rsyslog

busybox syslog

rsyslog

brew install rsyslog

syslog-ng

@version: 3.9

destination d_general {
file("/data/log/general.log");
};

source s_remote {
tcp(ip(0.0.0.0) port(10514));
udp(ip(0.0.0.0) port(10514));
};

log {
source(s_remote);
destination(d_general);
};