LinuxDevCenter.com

oreilly.comSafari Books Online.Conferences.

We've expanded our Linux news coverage and improved our search! Search for all things Linux across O'Reilly!

Search
Search Tips

advertisement

Listen Print Subscribe to Linux Subscribe to Newsletters

Tools of the Trade: Part 3

by Carl Constantine
07/13/2001

Welcome back! Today I'm going to take a look at some of the common tools that you can use on your own systems to spot holes, to look for potential problems, and tighten your grip on the system.

Last time, I took you through a brief introduction to tcpdump and Tripwire. This time, we'll take a look at syslog and last but not least, snort.

Syslog

Have you ever looked in your /var/log directory and wondered, "Where'd all those log files come from?" Chances are they were created by syslog, the system logging facility. syslog actually consists of a couple different tools that were originally part of the BSD distributions.

syslog has been ported to Linux and many other Unix operating systems (Solaris, HP-UX, etc.) and keeps all the same functionality of the original program. In some cases, a few functions have been added but nothing has been removed. I would consider syslog to be more of a "system" rather than a tool.

There are four parts to syslog; a syslogd daemon process, a klogd daemon process, a programming interface syslog.h, and a configuration file /etc/syslog.conf which is the key to the whole system. The programming interface is used by many other programs, such as Tripwire, to log activity on your system. Unless you're writing a security tool, or want to incorporate syslog in some other application you are writing, you won't use the programming interface.

The main crux of the syslog system is the /etc/syslog.conf file. It controls what logs are created and when. A separate utility that isn't part of syslog (but maybe should be) called logrotate will compress logs and create new ones on a daily basis or however long you want. The result is something that looks like this:

Screenshot.

syslog's configuration file is relatively simple to read and modify as you see fit. Let's take a quick look.

Pages: 1, 2, 3

Next Pagearrow




Tagged Articles

Be the first to post this article to del.icio.us

Sponsored Resources

  • Inside Lightroom
Advertisement

Sponsored by:

O'Reilly Media

©2009, O'Reilly Media, Inc.
(707) 827-7000 / (800) 998-9938
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
About O'Reilly
Academic Solutions
Authors
Contacts
Customer Service
Jobs
Newsletters
O'Reilly Labs
Press Room
Privacy Policy
RSS Feeds
Terms of Service
User Groups
Writing for O'Reilly
Content Archive
Business Technology
Computer Technology
Google
Microsoft
Mobile
Network
Operating System
Digital Photography
Programming
Software
Web
Web Design
More O'Reilly Sites
O'Reilly Radar
Ignite
Tools of Change for Publishing
Digital Media
Inside iPhone
O'Reilly FYI
makezine.com
craftzine.com
hackszine.com
perl.com
xml.com

Partner Sites
InsideRIA
java.net
O'Reilly Insights on Forbes.com