Hi, I would like to setup two syslog server so that I don't need to have outage if I need to do some update/upgrade on the system, my questions is how should I set it up? I can send all the traffic to both servers, but I can only load the data to a database on one system at a time. If I need to down the primary system, that mean I need to switch to the secondary to load the data and switch it back when primary is up again. How I can make sure I get all the data load on the database and make sure the syslog data on both servers are the same? Thanks. Hermann
I have been doing this and recent messages on this list suggest many others are too. The solution that I settled on was to cluster the two syslog-ng servers so that syslog-ng only ran on one server and failed over to the other if the first server died. The logs are written to a clustered filesystem on a SAN. I did consider running syslog-ng on both servers and then trying to do some kind of log file reconciliation every night but decided that would be too hard. To do the clustering we are using Poyserve but there are lots of other clustering systems out there that you could use. The big problem that I have is the loss of log messages during failover. If anyone else has suggested configs or ideas on minimising this I would be very interested to hear. Thanks John syslog-ng-bounces@lists.balabit.hu wrote on 01/11/2005 19:36:29:
Hi,
I would like to setup two syslog server so that I don't need to have outage if I need to do some update/upgrade on the system, my questions is how should I set it up? I can send all the traffic to both servers, but I can only load the data to a database on one system at a time. If I need to down the primary system, that mean I need to switch to the secondary to load the data and switch it back when primary is up again. How I can make sure I get all the data load on the database and make sure the syslog data on both servers are the same?
Thanks.
Hermann_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
John.Dickinson@nominet.org.uk wrote:
I have been doing this and recent messages on this list suggest many others are too. The solution that I settled on was to cluster the two syslog-ng servers so that syslog-ng only ran on one server and failed over to the other if the first server died. The logs are written to a clustered filesystem on a SAN. I did consider running syslog-ng on both servers and then trying to do some kind of log file reconciliation every night but decided that would be too hard. To do the clustering we are using Poyserve but there are lots of other clustering systems out there that you could use.
The big problem that I have is the loss of log messages during failover. If anyone else has suggested configs or ideas on minimising this I would be very interested to hear.
Thanks John
I'm using two syslog-ng listeners, listening to the same anycast address (it's a loopback address on the hosts), and a single database written to by both hosts. I'm using static routing but you can improve failover times using a bgpd to announce the loopback via BGP. On UDP traffic I get usually one packet drop only, thus usually just one message dropped. For TCP logs it takes longer, since the TCP sequence numbers don't match for the 'backup' server that has taken over the traffic, and the session stales out on the sender (receiver ignores the sender). So, on all syslog-ng hosts I use these options: options { time_reopen(5); }; Which will cause the TCP session to be killed and re-established in 5 seconds if it goes stale (default is 60 seconds). Fortunately it's rarely required in our present architecture if you have just two servers, since one is effectively a backup (though hosts connected to the same router as the 'backup' syslog-ng host will log to it). Anyone have a good solution for the "same filename, multiple data files" data consolidation approach? I used a quick perl hack to combine and sort, but am wondering if someone has a better solution for this problem? -andrew
participants (3)
-
Andrew Fort
-
John.Dickinson@nominet.org.uk
-
philip