Server
-----------------------------
[root@plggd020 etc]# more syslog-ng.conf
#sample syslog-ng.conf for a central logging server
options {
sync (0);
log_fifo_size (2048);
create_dirs (yes);
group (root);
dir_group (root);
perm (0640);
dir_perm (0750);
};
source s_local { internal(); unix-stream("/dev/log"); file("/proc/kmsg" log_prefix("kernel: ")); };
destination d_auth { file("/var/log/auth.log"); };
filter f_auth { facility(auth, authpriv); };
source s_remote { tcp(); };
destination d_clients { file("/var/log/HOSTS/$HOST"); };
log { source(s_remote); destination(d_clients); };
log { source(s_local); filter(f_auth); destination(d_auth); };
Client
-----------------
-bash-3.00# more
syslog-ng.conf
#sample syslog-ng.conf for a remote client
source s_local { internal(); unix-stream("/dev/log"); file("/proc/kmsg" log_prefix("kernel: ")); };
destination d_loghost {tcp("20.5.68.82" port(514));};
log { source(s_local); destination(d_loghost); };
destination messages { file("/var/log/messages-ng"); };
log {
source(s_local);
destination(messages);
};
-bash-3.00#
And there is no message going to Server
However at Client side log files shows the message as below:
-bash-3.00# logger "test "
-bash-3.00# tail /var/log/messages-ng
Apr 23 08:44:38
s_local@zlggd052 syslog-ng[9935]: syslog-ng starting up; version='2.0.2'
Apr 23 08:44:38
s_local@zlggd052 syslog-ng[9935]: Connection failed; error='No route to host
(113)', time_reopen='60'
Apr 23 08:45:12
s_local@zlggd052 syslog-ng[9935]: SIGTERM received, terminating;
Apr 23 08:45:12
s_local@zlggd052 syslog-ng[9935]: syslog-ng shutting down; version='2.0.2'
Apr 23 08:45:13
s_local@zlggd052 syslog-ng[9945]: syslog-ng starting up; version='2.0.2'
Apr 23 08:45:13
s_local@zlggd052 syslog-ng[9945]: Connection failed; error='No route to host (113)', time_reopen='60'
Apr 23 08:45:18
s_local@zlggd052 soetest1: test
Apr 23 08:46:13
s_local@zlggd052 syslog-ng[9945]: Connection failed; error='No route to host (113)', time_reopen='60'
Apr 23 08:47:13
s_local@zlggd052 syslog-ng[9945]: Connection failed; error='No route to host (113)', time_reopen='60'
Apr 23
08:47:46
s_local@zlggd052 soetest1: test
-bash-3.00#
Please suggest what will be the reason.
Thanks & Regards
Shamim
Yahoo! Answers - Got a question? Someone out there knows the answer. Try
it now.