blob: 889a3f328c33b06d418e67348421ba78a5bb0600 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001@version: 3.28
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01002@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)
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020033 command("PUBLISH" "F2B_CHANNEL" "$(sanitize $MESSAGE)")
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010034 );
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};