Put jenkins console logs into logstash.

Add a script that listens to jenkins ZMQ events and uses that
information to grab log files and pipe them into logstash. Configure
logstash to use this script and allow this script to connect to jenkins
via tcp port 8888.

Change-Id: Iced7d3a3147c116170a238b4fe07b46b7fb2a2a3
Reviewed-on: https://review.openstack.org/26035
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
This commit is contained in:
Clark Boylan 2013-04-03 13:03:23 -07:00 committed by Jenkins
parent 25d167565a
commit 40d012787e
1 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,9 @@
input {
syslog {
type => syslog
port => 5514
pipe {
command => "python3 /usr/local/bin/log-pusher.py -r -z tcp://jenkins.openstack.org:8888 -l http://logs.openstack.org -f console.html"
format => "json"
tags => ["jenkins", "console"]
type => "jenkins_console"
}
}