ELK Stack with Spring Boot Logs | Log Kibana and ES | Logstash and ELK Stack in Spring Boot

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • In This Tutorial I will explain how we can integrate ELK Stack with a Spring Boot application to collect, process, store, and view the logs.
    ELK stands for Elasticsearch, Logstash and Kibana.
    Download ELK stack from these links
    Elastic: www.elastic.co...
    Logstash: www.elastic.co...
    Kibana: www.elastic.co...
    For Starting please use below command:
    Logstash Start: .\bin\logstash.bat -f .\config\logstash-sample.conf
    Kibana Start: kibana.bat
    ES Start: elasticsearch.bat
    Project Reference: • How To Upload OR Downl...
    If you guys like this video please do subscribe now and press the bell icon to not miss any update from Java Tech Solutions
    For Subscribe: / @javatechsolutions
    #javatechsolutions #springboot #java #restapis #elk #kibana #elasticsearch #logging #monitor #logstash #distributedsystems

Komentáře • 18

  • @milad_mo
    @milad_mo Před 19 dny +1

    Thanks for your explanation, but that would be better if you had put the project Github link so others were able to implement and test this tutorial completely

  • @sasikumarM-sk2wo
    @sasikumarM-sk2wo Před 5 měsíci +1

    How long log is persisted in elastic search ? what happend if i reload the elastic search server ?
    And how can i get log for child sevrice, if one request hits "A" serivce it hits "B" service and it hits "C" service , i need all log in single place , is that possible in elk ?

    • @JavaTechSolutions
      @JavaTechSolutions  Před 5 měsíci

      Yes.. Possible to link all the logs in single place. Also its depends till when you want to keep the logs

  • @sasikumarM-sk2wo
    @sasikumarM-sk2wo Před 5 měsíci +1

    How long the log details is persisited in elastic search , if i reload the eleastic search server what happed ?

  • @hendisantika
    @hendisantika Před 2 měsíci

    Can you update it into ELK 8.14.1 or latest version? and make it as docker compose file?

    • @JavaTechSolutions
      @JavaTechSolutions  Před 2 měsíci

      Is there anything you are expecting for this update version?

    • @hendisantika
      @hendisantika Před 2 měsíci +1

      @@JavaTechSolutions Most of ELK 8 latest version are different configs and very secure configs. So not so easy with previous version. That's why I want to know how to achieve ELK stack on that latest version.

    • @JavaTechSolutions
      @JavaTechSolutions  Před 2 měsíci

      @@hendisantika ok

  • @youssouphafaye1710
    @youssouphafaye1710 Před 6 měsíci

    is it possible to have the github with all the necessary code and scripts

  • @imalchandika7290
    @imalchandika7290 Před 10 měsíci

    it request to certificate for me?can you handle this

    • @JavaTechSolutions
      @JavaTechSolutions  Před 10 měsíci

      You are trying in local ?

    • @shubhammohture6359
      @shubhammohture6359 Před 6 měsíci

      @imalchandika7290 Add this in your logstash.conf file:
      ssl => true
      ssl_certificate_verification => false
      So your logstash.conf file should look something like this:
      input {
      file {
      path => ""
      start_position => "beginning"
      }
      }
      output {
      stdout {
      codec => json
      }
      elasticsearch {
      hosts => ["localhost:9200"]
      index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
      user => "elastic"
      password => ""
      ssl => true
      ssl_certificate_verification => false
      }
      }

  • @ahmet7253
    @ahmet7253 Před 2 měsíci

    When I run the ".\bin\logstash.bat -f .\config\logstash-sample.conf" command, I get the following error "[FATAL] 2024-06-24 14:12:45.124 [main] Logstash - Logstash stopped processing because of an error: (NameError) cannot initialize Java class org.logstash.plugins.AliasRegistry (java.lang.ExceptionInInitializerError)
    org.jruby.exceptions.NameError: (NameError) cannot initialize Java class org.logstash.plugins.AliasRegistry (java.lang.ExceptionInInitializerError)" please help me I couldn't find any source about this :(((((