def logstash(registry, xml_parent, data):
 logstash = XML.SubElement(xml_parent, 'jenkins.plugins.logstash.LogstashNotifier')
 logstash.set('plugin', 'logstash')
 mapping = [('max-lines', 'maxLines', 1000), ('fail-build', 'failBuild', False)]
 helpers.convert_mapping_to_xml(logstash, data, mapping, fail_required=True)

def logstash ( registry , xml_parent , data ) : logstash = XML . SubElement ( xml_parent , 'jenkins.plugins.logstash.LogstashNotifier' ) logstash . set ( 'plugin' , 'logstash' ) mapping = [ ( 'max-lines' , 'maxLines' , 1000 ) , ( 'fail-build' , 'failBuild' , False ) ] helpers . convert_mapping_to_xml ( logstash , data , mapping , fail_required = True )
yaml: logstash send jobs console log to logstash for processing and analyis of your job data .