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

First LXQt-Based Lubuntu 17.10 Daily Builds Surface, Here's What It Looks Like

Lubuntu maintainer Simon Quigley was kind enough to inform us today about the availability of the first daily build ISO images of the upcoming Lubuntu 17.10 (Artful Aardvark) operating system, with the LXQt desktop environment. The development cycle of the Ubuntu 17.10 (Artful Aardvark) operating system started two months ago when Canonical's Adam Conrad gave the green light to all maintainers and developers involved in the project, and the first Alpha milestone is now approaching fast. Read more

Mageia 6 RC

  • Mageia 6 Reaches Release Candidate Phase
    After being challenged by set backs, Mageia 6 is out in release candidate form.
  • Mageia 6 RC, we are nearly there
    Everyone at Mageia is exceptionally happy and proud to announce the availability of the release candidate of Mageia 6. It has been a long road, but we are at the last step and Mageia 6 is just around the corner.
  • Mageia 6 Linux Distro Reaches RC State, Ships with Linux 4.9 & X.Org Server 1.19
    "The extra time that this release has taken has had one huge benefit: the number of new and exciting additions to Mageia is staggering. They include the now far more mature Plasma to replace KDE4, the DNF and COPR stacks to supplement urpmi, big updates to the major desktops and the other large stacks and components, and lots of package updates," said Donald Stewart in the release announcement.

Fedora and Red Hat

Debian and Devuan News