Installing Logster on CentOS
Installing Logster on CentOS
Install EPEL repository
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-6.noarch.rpm
yum update # This takes quite a while for a fresh install
Setting locale
cat >> ~/.bash_profile
Install Dependence
yum -y install logcheck
logcheck dependencies:
- liblockfile
- lockfile-progs
- perl-IPC-Signal
- perl-Proc-WaitStat
- perl-mime-construct
Install logster
git clone git://github.com/etsy/logster.git
cd logster
make install
dry run
/usr/sbin/logster --output=stdout SampleLogster /var/log/httpd/access_log
Add crontab
crontab -e
* * * * * /usr/sbin/logster -p blog_4aiur_net --output=graphite --graphite-host=localhost:2003 SampleLogster /var/log/httpd/blog.4aiur.net_access_log >/dev/null 2>&1