GithubHelp home page GithubHelp logo

hopscotchsen / elk-filebeat-for-nginx-application-log Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 3.0 19 KB

ELK (elasticsearch, logstash, kibana) Log analysis solution for nginx server log and application log by Filebeat collect

elk-filebeat-for-nginx-application-log's Introduction

ELK-Filebeat-for-nginx-application-log

ELFK (elasticsearch, logstash, filebeat, kibana) Log analysis solution for nginx server log and application log

Installation

  1. First Install Elasticsearch, Logstash, Kibana, Filebeat
  2. Run Elasticsearch and Kibana
  3. Setup Logstash
  4. Run Logstash and Filebeat

Version

6.3.5

Filebeat

Filebeat collects the following log files:

  1. Nginx:
  • access.log
  • error.log
  1. Application:
  • appplication.log contains log level DEBUG, INFO, ERROR
  • error.log only contains log level ERROR

Logstash

Convert unstructured logs into structured log files.

Application

  • Use spring boot default log format(Unstructured log)
  • Use JSON format application log(Structured log)

Steps to run the application

  1. Start the elk stack, navigate to the elk-configs folder
./filebeat -e -c filebeat.yml -d "publish"
  1. Start the logstash
./logstash -f ../config/logstash.conf
  1. Start the kibana
./kibana --allow-root
  1. Start the logging application
mvn spring-boot:run 
  1. Login to kibana at http://localhost:5601
  2. Import indexes and other ELK config using elk-configs/elkSavedObjects.json

elk-filebeat-for-nginx-application-log's People

Contributors

hopscotchsen avatar

Stargazers

 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.