GithubHelp home page GithubHelp logo

saeidzz / spring-elk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from issamnacim/spring-elk

0.0 1.0 0.0 185 KB

Example Spring ELK :: Logback && logstash + elasticsearch + kibana

Java 100.00%

spring-elk's Introduction

Spring-ELK Example

Log Management (ELK) for Spring Boot application

This simple example demonstrates how easy you can enable quite powerful and advanced log management in to your Spring Boot application

ELK Stack

  1. Elastics Search is a distributed, JSON-based search and analytics engine designed for horizontal scalability, maximum reliability, and easy management.
  2. Logstash is a dynamic data collection pipeline with an extensible plugin ecosystem and strong Elasticsearch synergy.
  3. Kibana gives the visualization of data through a UI.

ELK Stack Architecture

alt text

ELK Configuration

download logstash version : 6.2.2 create a new file logstash-config.conf and put :

input {
  file {
    path => "/PATH TO PROJECT/elk-example-spring-boot/elk-example.log.json"
    start_position => "beginning"
    sincedb_path => "/dev/null"
    stat_interval => 1
    codec =>   json {
      charset => "UTF-8"
    }
  }
}


output {
   elasticsearch {
     hosts => "http://localhost:9200"
     index => "elk_example"
     document_type => "anywhere"
  }
  stdout { codec => rubydebug }
}

run bin/logstash -f logstash-simple.conf

download elasticsearch version : 6.2.2 and run it : ./elasticsearch

donwload kibana version : 6.2.2 and run it : ./kibana

now we can search our message :

alt text

spring-elk's People

Contributors

issamnacim avatar

Watchers

James Cloos 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.