ELK Stack with Spring Boot Logs | Log Kibana and ES | Logstash and ELK Stack in Spring Boot
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
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
Sure.. I will add the link
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 ?
Yes.. Possible to link all the logs in single place. Also its depends till when you want to keep the logs
How long the log details is persisited in elastic search , if i reload the eleastic search server what happed ?
That we can manage till when we need to manage the logs
Can you update it into ELK 8.14.1 or latest version? and make it as docker compose file?
Is there anything you are expecting for this update version?
@@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.
@@hendisantika ok
is it possible to have the github with all the necessary code and scripts
yes, please, is it possible
I will add this
it request to certificate for me?can you handle this
You are trying in local ?
@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
}
}
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 :(((((
What java version are using ?