blob: 0c257d6acfa8390db09d4ff1eb9aea841ae6034f [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001@version: 3.19
2@include "scl.conf"
3options {
4 chain_hostnames(off);
5 flush_lines(0);
6 use_dns(no);
7 use_fqdn(no);
8 owner("root"); group("adm"); perm(0640);
9 stats_freq(0);
10 bad_hostname("^gconfd$");
11};
12source s_src {
13 unix-stream("/dev/log");
14 internal();
15};
16source s_sogo {
17 pipe("/dev/sogo_log" owner(sogo) group(sogo));
18};
19destination d_stdout { pipe("/dev/stdout"); };
20destination d_redis_ui_log {
21 redis(
22 host("redis-mailcow")
23 persist-name("redis1")
24 port(6379)
25 command("LPUSH" "SOGO_LOG" "$(format-json time=\"$S_UNIXTIME\" priority=\"$PRIORITY\" program=\"$PROGRAM\" message=\"$MESSAGE\")\n")
26 );
27};
28destination d_redis_f2b_channel {
29 redis(
30 host("redis-mailcow")
31 persist-name("redis2")
32 port(6379)
33 command("PUBLISH" "F2B_CHANNEL" "$MESSAGE")
34 );
35};
36log {
37 source(s_sogo);
38 destination(d_redis_ui_log);
39 destination(d_redis_f2b_channel);
40};
41log {
42 source(s_sogo);
43 source(s_src);
44 destination(d_stdout);
45};