mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
35 lines
637 B
Text
35 lines
637 B
Text
@version: 4.7
|
|
|
|
# Source configuration to receive logs from Docker containers
|
|
source s_net {
|
|
udp(
|
|
ip("0.0.0.0")
|
|
);
|
|
};
|
|
|
|
# Template to format log messages
|
|
template t_imp {
|
|
template("$MSG\n");
|
|
template_escape(no);
|
|
};
|
|
|
|
# Destination configuration to write logs to dynamically named files
|
|
destination d_dyna_file {
|
|
file(
|
|
"/var/log/bunkerweb/${PROGRAM}.log"
|
|
template(t_imp)
|
|
owner("101")
|
|
group("101")
|
|
dir_owner("root")
|
|
dir_group("101")
|
|
perm(0440)
|
|
dir_perm(0770)
|
|
create_dirs(yes)
|
|
);
|
|
};
|
|
|
|
# Log path to direct logs to dynamically named files
|
|
log {
|
|
source(s_net);
|
|
destination(d_dyna_file);
|
|
};
|