Pastebin
Paste #2272: /etc/syslog-ng/syslog-ng.conf
< previous paste - next paste>
Pasted by root@mail
@version: 3.0
options {
chain_hostnames(0);
time_reopen(10);
time_reap(360);
log_fifo_size(2048);
create_dirs(yes);
owner(root); group(adm); perm(0640);
dir_owner(root); dir_group(adm); dir_perm(0755);
use_dns(yes);
use_fqdn(yes);
stats_freq(3600);
ts_format(iso);
frac_digits(6);
};
source s_local {
internal();
unix-stream("/dev/log" keep_timestamp(no));
file("/proc/kmsg" program_override("kernel"));
};
destination dn_network { tcp("log.sikkerhed.org" template("$ISODATE $FULLHOST $MESSAGE\n") template_escape(no)); };
destination du_all { usertty("*"); };
destination df_critical { file("/var/log/critical/log-$YEAR-$MONTH-$DAY"); file("/var/log/critical/current"); };
destination df_facility { file("/var/log/$FACILITY/log-$YEAR-$MONTH-$DAY"); file("/var/log/$FACILITY/current"); };
destination df_everything { file("/var/log/everything/log-$YEAR-$MONTH-$DAY"); file("/var/log/everything/current"); };
filter f_critical { level(crit,alert,emerg); };
filter f_emerg { level(emerg); };
log { source(s_local); destination(dn_network); };
log { source(s_local); destination(df_everything); };
log { source(s_local); destination(df_facility); };
log { source(s_local); filter(f_critical); destination(df_critical); };
log { source(s_local); filter(f_emerg); destination(du_all); };
New Paste
Go to most recent paste.