|
6 | 6 | repository: balabit/syslog-ng
|
7 | 7 | pullPolicy: IfNotPresent
|
8 | 8 | # Overrides the image tag whose default is the chart appVersion.
|
9 |
| - tag: "3.27.1" |
10 |
| - |
11 |
| -# By default, the network() driver binds to 0.0.0.0, meaning that it listens |
12 |
| -# on every available IPV4 interface on the TCP/601 port. |
13 |
| - |
14 |
| -config: | |
15 |
| - @version: 3.27 |
16 |
| - @include "scl.conf" |
17 |
| - options { |
18 |
| - # enable or disable directory creation for destination files |
19 |
| - create_dirs(yes); |
20 |
| -
|
21 |
| - # keep hostnames from source host |
22 |
| - keep_hostname(yes); |
23 |
| -
|
24 |
| - # use ISO8601 timestamps |
25 |
| - ts_format(iso); |
26 |
| - }; |
27 |
| - log { |
28 |
| - source { |
29 |
| - network(); |
30 |
| - }; |
31 |
| - destination { file("/var/log/${YEAR}-${MONTH}-syslog"); }; |
32 |
| - }; |
| 9 | + tag: "4.7.1" |
| 10 | + |
| 11 | +# By default, https://github.com/syslog-ng/syslog-ng/blob/master/docker/syslog-ng.conf will be used that is part of the image |
| 12 | +# You can ovverride this by providing your own config, for example: |
| 13 | +# config: | |
| 14 | +# ############################################################################# |
| 15 | +# # Default syslog-ng.conf file which collects all local logs into a |
| 16 | +# # single file called /var/log/messages tailored to container usage. |
| 17 | +# # |
| 18 | +# # The changes from the stock, default syslog-ng.conf file is that we've |
| 19 | +# # dropped the system() source that is not needed and that we enabled network |
| 20 | +# # connections using default-network-drivers(). Customize as needed and |
| 21 | +# # override using the -v option to docker, such as: |
| 22 | +# # |
| 23 | +# # docker run ... -v "$PWD/syslog-ng.conf":/etc/syslog-ng/syslog-ng.conf |
| 24 | +# # |
| 25 | + |
| 26 | +# @version: 4.7 |
| 27 | +# @include "scl.conf" |
| 28 | + |
| 29 | +# source s_local { |
| 30 | +# internal(); |
| 31 | +# }; |
| 32 | + |
| 33 | +# source s_network { |
| 34 | +# default-network-drivers( |
| 35 | +# # NOTE: TLS support |
| 36 | +# # |
| 37 | +# # the default-network-drivers() source driver opens the TLS |
| 38 | +# # enabled ports as well, however without an actual key/cert |
| 39 | +# # pair they will not operate and syslog-ng would display a |
| 40 | +# # warning at startup. |
| 41 | +# # |
| 42 | +# #tls(key-file("/path/to/ssl-private-key") cert-file("/path/to/ssl-cert")) |
| 43 | +# ); |
| 44 | +# }; |
| 45 | + |
| 46 | +# destination d_local { |
| 47 | +# file("/var/log/messages"); |
| 48 | +# file("/var/log/messages-kv.log" template("$ISODATE $HOST $(format-welf --scope all-nv-pairs)\n") frac-digits(3)); |
| 49 | +# }; |
| 50 | + |
| 51 | +# log { |
| 52 | +# source(s_local); |
| 53 | +# source(s_network); |
| 54 | +# destination(d_local); |
| 55 | +# }; |
| 56 | +config: "" |
33 | 57 |
|
34 | 58 | storage:
|
35 | 59 | enable: True
|
|
0 commit comments