Language Selection

English French German Italian Portuguese Spanish

Configure Local and Remote System Logging : Ubuntu

Filed under
HowTos

A linux machine has a logging system which keeps track of what everything is doing. Anytime you authorize with sudo it gets logged. Anytime you (or someone else) connects via ssh it gets logged. Apache logs connections, mail servers log emails sent and refused. Pretty much everything keeps a log of what it is doing so you can later troubleshoot it or simply have a record of it.For those that are security minded it may not be a bad idea to keep duplicate of your logs by sending them not only to the local machine but to a remote machine as well. This way, even if an attacker is able to get into the first machine his steps are logged remotely before he is able to clear them on the local machine. This, of course, has a number of other valuable uses. In any event, here are a few quick steps to set it up.

/etc/syslog.conf

This file is the main “what gets logged and where” file for your system. If you take a look at it you’ll see that it takes different types of logs and writes them to the appropriate files. Mail here. Cron there. etc. We can easily tell the system to send the logs elsewhere with the following:

More Here.




More in Tux Machines

Simplicity Linux 14.10 is now available to download!

Simplicity Linux 14.10 is now available for everyone to download. It uses the 3.15.4 kernel. Netbook and Desktop Editions both use LXDE as the desktop environment, and X Edition uses KDE 4.12.3. The download links are as follows: Read more

Free-software pioneer says it's all about liberty

When it comes to code that runs a computer or a program, Richard Stallman believes it should be free. Not only at no cost to the user, but unshackled and independent. To Stallman, it is a matter of liberty, not price. “We say free software as in ‘free speech’ not ‘free beer,’” Stallman said. The computer programmer and activist shared his views, which earned him the MacArthur “Genius Grant,” during a presentation at Weber State University on Thursday. Read more

Samsung fires another shot at Microsoft in Android patent battle

This move came as no surprise to lawyers who've been following the case. One intellectual property (IP) attorney whose firm is covering the case closely said that Samsung is simply adding another argument to their contention that their existing Microsoft Android patent deal is invalid on business contract grounds. According to Reuters, Samsung said it agreed to pay Microsoft Android patent license royalties in 2011, but the deal also stated that Samsung would develop Windows phones and share confidential business information with Microsoft. If Samsung were to sell a certain number of Windows phones, then Microsoft would reduce the Android royalty payments. Read more

Systemd is Back, Microsoft Hearts Linux, and Qubes OS

News seemed a bit slow on this All Hallows Eve, but there was still plenty to highlight. Folks are questioning Microsoft's recent claims to "love Linux." Systemd is back in the headlines with a primer from Chris Hoffman, a Fedora Rawhide systemd warning is in effect, and someone Ask Slashdot if readers could say anything nice about systemd. Jack M. Germain reviews Qubes OS and Larry Cafiero brings "The Wide World of Canonical." Read more