Adding better syslog

This commit is contained in:
2020-10-18 23:49:25 -05:00
parent e12c8ff0c6
commit ffbd7b7bd8
6 changed files with 134 additions and 14 deletions

View File

@@ -0,0 +1,10 @@
# Define TCP syslog destination.
destination d_graylog {
syslog("{{ logserver }}" port(10514));
};
# Tell syslog-ng to send data from source s_src to the newly defined syslog destination.
log {
source(src); # Defined in the default syslog-ng configuration.
destination(d_graylog);
};