Git Product home page Git Product logo

elk-log-stack's Introduction

Elasticsearch, logStash, and Kibana

Elasticsearch Uses NoSQL database full-text search, filtering, and aggregation used for log management, log aggregation, and log analysis in distributed systems and containerized environments.

logStash It process through the Logstash pipeline script It supports a wide range of input plugins to collect data from sources like log files, syslog, metrics, databases, and message queues. Logstash allows you to parse, filter, and modify data using filter plugins before sending it to Elasticsearch for storage and analysis.

Kibana data visualization and analytics platform that works seamlessly with Elasticsearch to visualize and explore log data.

FLOW

Appilication --->Log_file ----> logStash(data processing)---->elasticsearch(storage)---->kibana(Visualize)

Installation on ubuntu and configuring each individually....

1)elastic search

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.12.0-linux-x86_64.tar.gz tar -xvzf mv to elasticSearch bin/elasticSearch

or

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - sudo sh -c 'echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elastic-7.x.list' sudo apt update sudo apt install elasticsearch sudo systemctl start elasticsearch sudo systemctl enable elasticsearch

2)Logstash

https://artifacts.elastic.co/downloads/logstash/logstash-8.12.0-linux-x86_64.tar.gz tar -xvzf mv to logstash bin/logstash or

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elastic-keyring.gpg sudo apt-get install apt-transport-https echo "deb [signed-by=/usr/share/keyrings/elastic-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-8.x.list sudo apt-get update && sudo apt-get install logstash

bin/logstash -f /path/to/logstash.conf

2)Kibana

https://artifacts.elastic.co/downloads/kibana/kibana-8.12.0-linux-x86_64.tar.gz tar -xvzf mv to kibana bin/kibana

or

sudo sh -c 'echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elastic-7.x.list' sudo apt update sudo apt install kibana sudo systemctl start kibana sudo systemctl enable kibana Kibana runs on the 5601 port.

*go to kibana.yml from config dir uncomment the below line elasticsearch.hosts:["http://localshost:9200"] =>mention server address of elasticSearch and its exposed ports

Steps::

git clone https://github.com/Java-Techie-jt/elk-stack-logging-example.git go to the src/main/resources/appilication.yml Add the below line logging: file: Crete the logstash.conf file and copy in /bin of logstash $ \bin\logstash -f logstash.conf generate the logs..by hitting the getuser api we will see the generated logs from logstash console also verify the indices from elasticsearch server where logstash cretes indices like logstash-YYYY.MM.dd /_cat/indices/ /<logstash-YYYY.MM.dd> Kibana-server-->management-->index-patterns-->create index pattern -->give logstash-* select resulted logstash index pattern -->click next step -->create index pattern Click on the discover for the logs

** IMP NOTE **

Analysis(elasticSearch or MongoDB)-->Archiving(S3)-->Monitoring(Cloudwatch,nagios)-->Alerting(SNS,EMAIL)

elk-log-stack's People

Contributors

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