From aa411bef1a7ef964cd224bbc1cd952464262fc4c Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 2 May 2013 12:02:08 -0700 Subject: [PATCH] Make the Jenkins log pusher a service. * modules/openstack_project/manifests/logstash.pp: Run the Jenkins log pusher script as a service. This is the first step in making Logstash use the TCP inputs instead of pipe inputs. * modules/openstack_project/files/logstash/jenkins-log-pusher.init: Add a simple init script for the Jenkins log pusher. * modules/openstack_project/templates/logstash/indexer.conf.erb: Switch to TCP input instead of pipe input as the new Jenkins log pusher service will push log events over TCP. Change-Id: Id80c710abd5facd71d18afb2b250b2d7d92dec2d Reviewed-on: https://review.openstack.org/28074 Reviewed-by: Jeremy Stanley Reviewed-by: James E. Blair Approved: Clark Boylan Tested-by: Jenkins --- indexer.conf.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/indexer.conf.erb b/indexer.conf.erb index d5aa77b..66b195c 100644 --- a/indexer.conf.erb +++ b/indexer.conf.erb @@ -1,6 +1,7 @@ input { - pipe { - command => "python3 /usr/local/bin/log-pusher.py -r -z tcp://jenkins.openstack.org:8888 -l http://logs.openstack.org -f console.html -d /var/log/logstash/indexer-debug.log" + tcp { + host => "localhost" + port => 9999 format => "json" message_format => "%{event_message}" tags => ["jenkins", "console"]