All Projects → jenkinsci → logstash-plugin

jenkinsci / logstash-plugin

Licence: MIT License
Jenkins plugin to ship the console log off to Logstash

Programming Languages

java
68154 projects - #9 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to logstash-plugin

k8s-elk
Kubernetes ELK - ElasticSearch, Kibana, Logstash, and all the trimmings
Stars: ✭ 37 (-39.34%)
Mutual labels:  logstash
TIL
Today I Learned
Stars: ✭ 43 (-29.51%)
Mutual labels:  logstash
tsharkVM
tshark + ELK analytics virtual machine
Stars: ✭ 51 (-16.39%)
Mutual labels:  logstash
kafkabeat
Elastic Beat for fetching events from Kafka
Stars: ✭ 23 (-62.3%)
Mutual labels:  logstash
xelogstash
Send SQL Server Extended Events to Logstash, Elastic Search, or JSON
Stars: ✭ 22 (-63.93%)
Mutual labels:  logstash
microservice-elk
Creating microservice using Spring Boot, Eureka, Zuul, Sleuth, Zipkin and ELK Stack
Stars: ✭ 19 (-68.85%)
Mutual labels:  logstash
spring-boot-microservice-eureka-zuul-docker-gateway-kubernetes
Spring Boot rest microservices using Kubernetes, ConfigMap, Eureka, Zuul / Spring Boot Gateway, Docker. Monitoring with logstash, logback, elasticsearch, kibana.
Stars: ✭ 86 (+40.98%)
Mutual labels:  logstash
kafkabeat
Kafka event forwarder build on top of Elastic Beats platform
Stars: ✭ 13 (-78.69%)
Mutual labels:  logstash
elk-stack
ELK Stack (Elasticsearch, Logstash & Kibana)
Stars: ✭ 13 (-78.69%)
Mutual labels:  logstash
logstash
Configurations of my logstash: logstash, filebeat, grok patterns: sshd, postfix, apache, sysdig, zimbra mailbox.log, zimbra zimbra.log, Datadog Dogstatsd, fail2ban
Stars: ✭ 89 (+45.9%)
Mutual labels:  logstash
eslog tutorial
From Raw Logs to Real Insights - A tutorial for getting started with log analytics using Elastic Stack.
Stars: ✭ 28 (-54.1%)
Mutual labels:  logstash
seahorse
ELKFH - Elastic, Logstash, Kibana, Filebeat and Honeypot (HTTP, HTTPS, SSH, RDP, VNC, Redis, MySQL, MONGO, SMB, LDAP)
Stars: ✭ 31 (-49.18%)
Mutual labels:  logstash
log4stash
Module to Log log4net Messages to ElasticSearch
Stars: ✭ 60 (-1.64%)
Mutual labels:  logstash
maple
Type-safe, consistently named and formatted, structured logging wrapper for SLF4J that's ideally suited for your logging aggregator.
Stars: ✭ 39 (-36.07%)
Mutual labels:  logstash
k8s-log
容器日志搜集套件。
Stars: ✭ 15 (-75.41%)
Mutual labels:  logstash
spring-boot-elk
An sample todo app demonstrating centralised logging using ELK stack
Stars: ✭ 20 (-67.21%)
Mutual labels:  logstash
WAZUH-OSSEC
WAZUH - The Open Source Security Platform Installation
Stars: ✭ 79 (+29.51%)
Mutual labels:  logstash
docker-elk
ELK Stack on Docker
Stars: ✭ 43 (-29.51%)
Mutual labels:  logstash
jlogstash-input-plugin
java 版本 logstash input 插件
Stars: ✭ 20 (-67.21%)
Mutual labels:  logstash
logiq
Monitoring Web UI for Elastic Logstash
Stars: ✭ 34 (-44.26%)
Mutual labels:  logstash

Jenkins Logstash Plugin

Travis: Build Status Jenkins: Build Status

This plugin adds support for sending a job's console log to Logstash indexers such as Elastic Search, Logstash, RabbitMQ, Redis or to Syslog.

  • see Jenkins wiki for detailed feature descriptions
  • use JIRA to report issues / feature requests

Install

  • Generate the hpi file with the command: mvn package

  • Put the hpi file in the directory $JENKINS_HOME/plugins

  • Restart jenkins

Configure

Currently supported methods of input/output:

  • ElasticSearch {REST API}
  • Logstash TCP input
  • Redis {format => 'json_event'}
  • RabbitMQ {mechanism => PLAIN}
  • Syslog {format => cee/json (RFC-5424,RFC-3164), protocol => UDP}

Pipeline

Logstash plugin can be used as a publisher in pipeline jobs to send the whole log as a single document.

 node('master') {
        sh'''
        echo 'Hello, world!'
        '''
        logstashSend failBuild: true, maxLines: 1000
 }

It can be used as a wrapper step to send each log line separately.

Note: when you combine with timestamps step, you should make the timestamps the outer most block. Otherwise you get the timestamps as part of the log lines, basically duplicating the timestamp information.

timestamps {
  logstash {
    node('somelabel') {
      sh'''
      echo 'Hello, World!'
      '''
    }
  }
}

License

The Logstash Plugin is licensed under the MIT License.

Contributing

  • Fork the project on Github
  • Make your feature addition or bug fix, write tests, commit.
  • Send me a pull request. Bonus points for topic branches.

Adding support for new indexers

  • Implement the extension point jenkins.plugins.logstash.configuration.LogstashIndexer that will take your configuration.
  • Implement equals() and hashCode()so the plugin can compare new configuration with existing configuration.
  • Create a configure-advanced.jelly for the UI part of your configuration.
  • Create a help.jelly with more details about indexer.
  • Create a new class that extends jenkins.plugins.logstash.persistence.AbstractLogstashIndexerDao or jenkins.plugins.logstash.persistence.HostBasedLogstashIndexer. This class will do the actual work of pushing the logs to the indexer.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].