Giter VIP home page Giter VIP logo

logs-monitoring-elk's Introduction

Logs-Monitoring-ELK

In this project, I have worked on logs monitoring for Spring Boot Application using ELK Stack (Elastic search, Logstash and Kibana).

How to Run :

1 - Download Elasticsearch .zip file from Elasticsearch Downloads. Extract the .zip file and run "elasticsearch.bat" file in /bin folder. Goto http://localhost:9200/ and you can see the Elasticsearch webpage.

2 - Download Kibana .zip file from Kibana Downloads. Extract the .zip file and run "kibana.bat" file in /bin folder. Goto http://localhost:5601/ and you can see the Kibana webpage. Create a new Index "logstash-*". Goto Discover Page and you will see the logs there when you run the spring boot application.

3 - Download Logstash .zip file from Logstash Downloads. Extract the .zip file. Create "logstash.conf" file inside the folder and add the following content into it, replace the PROJECT_PATH and save it:

input { file { type => "java" path => "PROJECT_PATH/spring-boot-elk.log" codec => multiline { pattern => "^%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}.*" negate => "true" what => "previous" } } }

filter { if [message] =~ "\tat" { grok { match => ["message", "^(\tat)"] add_tag => ["stacktrace"] } } }

output { stdout { codec => rubydebug } elasticsearch { hosts => ["localhost:9200"] } }

4 - Run "bin/logstash -f logstash.conf" in command prompt inside the extracted folder.

5 - Now, run the Spring Boot Application. Goto http://localhost:8080/elk to see the success logs and http://localhost:8080/exception to see the error stacktrace logs.

logs-monitoring-elk's People

Contributors

adityakshettri avatar

Watchers

 avatar  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.