Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 1 | @version: 3.19 |
| 2 | @include "scl.conf" |
| 3 | options { |
| 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 | }; |
| 12 | source s_src { |
| 13 | unix-stream("/dev/log"); |
| 14 | internal(); |
| 15 | }; |
| 16 | source s_sogo { |
| 17 | pipe("/dev/sogo_log" owner(sogo) group(sogo)); |
| 18 | }; |
| 19 | destination d_stdout { pipe("/dev/stdout"); }; |
| 20 | destination 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 | }; |
| 28 | destination 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 | }; |
| 36 | log { |
| 37 | source(s_sogo); |
| 38 | destination(d_redis_ui_log); |
| 39 | destination(d_redis_f2b_channel); |
| 40 | }; |
| 41 | log { |
| 42 | source(s_sogo); |
| 43 | source(s_src); |
| 44 | destination(d_stdout); |
| 45 | }; |