Adding better syslog
This commit is contained in:
10
roles/Sharingan-Data/templates/graylog.conf.j2
Normal file
10
roles/Sharingan-Data/templates/graylog.conf.j2
Normal 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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user