Project

logspray

0.0
No commit activity in last 3 years
No release in over 3 years
AMQP logger to be used by daemons like apache that support pipe in
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

>= 0
>= 0
 Project Readme

Install:

gem install logspray (gem build in progress)

currently:

git clone https://github.com:davidx/logspray.git 
cd logspray && gem install bundler && bundle install 
  • Setup a rabbitmq or amqp compliant server on 'myamqploghost'

Gentoo:

emerge rabbitmq && rc-update add rabbitmq default && /etc/init.d/rabbitmq start 

Ubuntu:

apt-get install rabbitmq-server && update-rc add rabbitmq-server && /etc/init.d/rabbitmq-server start 

Log persistence example:

  • Add this cronjob on your central log storage server:
* * * * * ruby /data/ops/current/logspray/bin/consume_logspray_queue.rb --host=myamqploghost --queue=apache_access_log --logfile=/var/log/logspray/apache_access_log/apache_access_log_`date +%Y%m%d`.log
* * * * * ruby /data/ops/current/logspray/bin/consume_logspray_queue.rb --host=myamqploghost --queue=apache_error_log --logfile=/var/log/logspray/apache_error_log/apache_error_log_`date +%Y%m%d`.log