summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-07-24 16:58:57 -0400
committerScott Moser <smoser@ubuntu.com>2015-07-24 16:58:57 -0400
commit6970029c661ab858a55dd467e5c593694ab39512 (patch)
treec2397e8d6a619157709fd50dea6b0dd22b48571f /doc/examples
parent17e055018349c1813dffb04b0434b18c94dd7d3d (diff)
downloadvyos-cloud-init-6970029c661ab858a55dd467e5c593694ab39512.tar.gz
vyos-cloud-init-6970029c661ab858a55dd467e5c593694ab39512.zip
commit initial re-work/re-implementation of syslog config
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/cloud-config-syslog.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/examples/cloud-config-syslog.txt b/doc/examples/cloud-config-syslog.txt
new file mode 100644
index 00000000..9ec5e120
--- /dev/null
+++ b/doc/examples/cloud-config-syslog.txt
@@ -0,0 +1,30 @@
+## syslog module allows you to configure the systems syslog.
+## configuration of syslog is under the top level cloud-config
+## entry 'syslog'.
+##
+## "remotes"
+## remotes is a dictionary. items are of 'name: remote_info'
+## name is simply a name (example 'maas'). It has no importance other than
+## for cloud-init merging configs
+##
+## remote_info is of the format
+## * optional filter for log messages
+## default if not present: *.*
+## * optional leading '@' or '@@' (indicates udp or tcp).
+## default if not present (udp): @
+## This is rsyslog format for that. if not present, is '@' which is udp
+## * ipv4 or ipv6 or hostname
+## ipv6 addresses must be encoded in [::1] format. example: @[fd00::1]:514
+## * optional port
+## port defaults to 514
+##
+## Example:
+#cloud-config
+syslog:
+ remotes:
+ # udp to host 'maas.mydomain' port 514
+ maashost: maas.mydomain
+ # udp to ipv4 host on port 514
+ maas: "@[10.5.1.56]:514"
+ # tcp to host ipv6 host on port 555
+ maasipv6: "*.* @@[FE80::0202:B3FF:FE1E:8329]:555"