Ubuntu: using logcheck to check your logs

If you run a little web site like mine or a huge great industrial site you always need to keep an eye on it. One of my favourite tools for that is Logcheck

Put simply Logcheck will check your log files and send you an email for new events, think tail but in email form.

To install simply fire up Terminal and type

sudo apt get install

Now time to configure

sudo nano /etc/logcheck/logcheck.conf

There aren’t many settings so time to set them. This is my basic settings file

INTRO=0
REPORTLEVEL="server"
SENDMAILTO="depicus@example.com"
MAILASATTACH=0
FQDN=1
TMP="/tmp"

Intro just removes the intro from the top of the email, reportlevel is the amount of detail sent and the rest are left as is. The config file is well commented.

Now time to set which logs to check.

sudo nano /etc/logcheck/logcheck.logfiles

And by default it only has two logs, I am going to add the Apache error log as well

# these files will be checked by logcheck
# This has been tuned towards a default syslog install
/var/log/syslog
/var/log/auth.log
/var/log/apache2/error.log

That’s it – now wait for the logs to come in.

More info here



1 year ago today I ran my first half marathon

1 year ago today I ran my first half marathon and I remember thinking on the way round that this is as close to hell as any man can get. But as soon as you cross the finish line your brain starts to forget the pain and concentrate on the joy of having accomplished your goal. I won’t lie, the three days after were a walking nightmare I felt so stiff but the pain was temporary and the rewards permanent so an Olympic triathlon and several half marathons later I can safely say it does get easier. I ran 22km yesterday and felt great all the way and recovered within the hour. I am loving my running and looking forward to joining the 26.2 mile club in June. Good luck and best wishes to all those who step one foot in front of the other at a speed greater than a walk #marathontraining #runner #running #halfmarathon #happyrunner



Rest day so I thought I would test out the sun on the mountain bike

Rest day so I thought I would test out the sun on the mountain bike and reccy a new half marathon route. My legs are in sooooooo much pain it was up down up down mud mud up down mud all the way and with poor breaks I has to walk down the downs – still great to see the sun #trek #mountainbiking #hilly #legslikelead #crying #cannotmove