![]() | |
home :: logging :: syslog_client | |
Mon, 24 Nov 2008The Syslog Client
The client layer is where the logs are generated. I often refer to these as the 'edge hosts', but that doesn't necessarily mean they are all at the network edge. The clients can be on a variety of networks and in various locations around the world.
A word of warning: In a large and heterogeneous environment, the client layer is where you're going to have to make the most compromises. Many clients, especially older hosts and network gear, can't have their syslog software upgraded or replaced. The saving grace is that almost everything supports network syslog delivery. We'll take advantage of this to get the logs off the host and into our infrastructure. Some things to consider:
Now, what to send? I'm strongly in favor of sending everything that you can, provided you have the storage (which is cheap!) to hold it. That makes the client configurations straightforward, which speeds up the work and testing. That's a bonus if you have others helping you do the setup. How to send it? If you can manage it, which means package, distribute, and configure the application in a repeatable way, I strongly suggest using Syslog-ng as a client. Using Syslog-ng gives you rich filtering at the client and TCP connectivity, which improves delivery reliability. If you can't do this, add a remote logging line to syslog.conf (or similar config, depending on your device). From the syslog.conf man page:
*.* @finlandia
This rule would redirect all messages to a remote host
called finlandia. This is useful especially in a cluster
of machines where all syslog messages will be stored on
only one machine.
This remote configuration will send your syslog packets over UDP to the remote host. One other thing to remember, as you convert clients over to the new syslog infrastructure, you don't want newly deployed clients to be missed or require re-work. Work with your Operations peers to get the updated syslog configs built into your base configurations. That way, new hosts will be deployed and begin logging immediately. Don't worry, we're only covering concepts now. At the end of this series, I'll provide a recipe with the order of operations needed to cook up your logging system. Prior articles in this series: Tags: syslog on technorati, delicious, netscape, google Last Updated: 11/24/2008 20:32 by Richard | | Filed in: [/logging]
|
|
All Content and Images, Copyright, 2006-2008, unless otherwise noted or attributed
All opinions are my own and do not necessarily represent the views of my employer. | |