blob: 5a84b72240a6233f77b5a687bd830d9d5867caf9 [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_SLAVEOF_IP`")
23 persist-name("redis1")
24 port(`REDIS_SLAVEOF_PORT`)
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_SLAVEOF_IP`")
31 persist-name("redis2")
32 port(`REDIS_SLAVEOF_PORT`)
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};