[SOGo] Log to a pipe to not keep logs in a container

This commit is contained in:
andryyy
2017-07-11 17:08:06 +02:00
parent 99cd459655
commit a31819fd6c
3 changed files with 21 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
@version: 3.5
@version: 3.8
@include "scl.conf"
options {
chain_hostnames(off);
@@ -14,12 +14,10 @@ source s_src {
internal();
};
source s_sogo {
file("/var/log/sogo/sogo.log");
pipe("/dev/sogo_log" owner(sogo) group(sogo));
};
destination d_combined {
file("/var/log/combined.log");
};
destination d_redis_persistent_log {
destination d_stdout { pipe("/dev/stdout"); };
destination d_redis_ui_log {
redis(
host("redis-mailcow")
persist-name("redis1")
@@ -37,11 +35,11 @@ destination d_redis_f2b_channel {
};
log {
source(s_sogo);
source(s_src);
destination(d_combined);
destination(d_redis_ui_log);
destination(d_redis_f2b_channel);
};
log {
source(s_sogo);
destination(d_redis_persistent_log);
destination(d_redis_f2b_channel);
source(s_src);
destination(d_stdout);
};