GithubHelp home page GithubHelp logo

dimaunx / jenkins-logs-es Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 12 KB

Simple demo to ship jenkins logs to Elastic Search with Filebeat and Logstash.

License: Apache License 2.0

Shell 34.84% Makefile 13.98% Dockerfile 23.54% Groovy 27.64%

jenkins-logs-es's Introduction

Simple demo to ship jenkins logs to Elastic Search with Filebeat and Logstash.

Prerequisites

Deploy

git clone https://github.com/dimaunx/jenkins-logs-es.git
cd jenkins-logs-es
make deploy

Jenkins will be configured with user and password of admin. Two sample jobs will be created.

The default index pattern of logstash-* will be created by setup-kibana container.

Wait for Kibana to be up (http://localhost:5601). Run the sample jenkins jobs (http://localhost:8080) and the logs should appear in Kibana.

Flow

Jenkins --> jenkins folder <-- FileBeat --> LogStash --> Elastic Search <-- Kibana

Filebeat will ship the logs to Logstash. Logstash will parse the path of the log file on the jenkins file system and exctract/create two custom fields jobName and buildNum.

Ports

Jenkins - http://localhost:8080 Kibana - http://localhost:5601 ElasticSearch - http://localhost:9200

Cleanup

make clean

jenkins-logs-es's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.