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 <fungi@yuggoth.org> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
This commit is contained in:
parent
8a2b2af255
commit
aa411bef1a
|
@ -1,6 +1,7 @@
|
||||||
input {
|
input {
|
||||||
pipe {
|
tcp {
|
||||||
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"
|
host => "localhost"
|
||||||
|
port => 9999
|
||||||
format => "json"
|
format => "json"
|
||||||
message_format => "%{event_message}"
|
message_format => "%{event_message}"
|
||||||
tags => ["jenkins", "console"]
|
tags => ["jenkins", "console"]
|
||||||
|
|
Loading…
Reference in New Issue