Posts

Setting up Lombok with SpringToolSuite and Intellij Idea

Image
Lombok is a java library that you can plug into your editor which will automatically generate code in .class file instead of in source file. E.g:   getters, setters toString, equals, hashcode, builder, loggers, and many others. In this tutorial, I’ll talk about configuring it in two of the most popular IDEs- IntelliJ IDEA and Spring Tool Suite. Check my Github repo to learn project Lombok using java source code. Note: Step for installing the plugin for Eclipse and Spring tool Suite (STS) are the same. Steps to configure Lombok in STS Download Lombok jar from the Lombok site. Double click on Lombok jar which will open below Installer wizard, Choose IDEs in which you want to install. If your not IDE is not listed then you can browse using Specify location tab. Once selected, click on Install/update button and you are done. Steps to configure Lombok in IntelliJ IDEA Open IntelliJ Idea and click on File-> Settings… Click on Plugin opt...

Streaming Spring boot logs to ELK stack

Image
In my previous blog , we have done ELK installation on windows 10 and we have even tried to push messages from input console to Elastic Search and finally viewed on Kibana Server. I will write a separate blog on why do we need ELK? In this blog, I’ll show you how can we push spring boot application log directly to Elastic search using Logstash which we can analyze on Kibana and If you don’t know how to install ELK on windows 10 then you can refer my previous blog and start Elastic Search and Kibana server. Prerequisite Elastic Search and Kibana running on your machine Basic knowledge of Spring boot application If you don’t want to start your application from scratch then you can download one spring boot application from my GitHub repository as well. I am assuming that the Elastic Search and Kibana server are running on your machine and you have a fair idea of how to start the Logstash server and what is Logstash conf file. So, to push spring boot logs cont...

ELK (ElasticSearch Logstash and Kibana ) Installation on Windows 10

Image
In this blog, I’ll show you how can we install ELK on our windows 10 machine - that is ElasticSearch, Logstash, and Kibana. These three different products are most commonly used together for log analysis. Using ELK stack, we can achieve centralized logging which helps in identifying the problems.  ELK is heavily used in microservices architecture where your docker images are running on 1000's of POD and you can't go to each pod to trace the logs. Logstash: It is the data collection pipeline tool. It is the first component of ELK Stack which collects data inputs and feeds it to the Elasticsearch. It collects various types of data from different sources, all at once and makes it available immediately for further use. Elasticsearch: It is a NoSQL database which is based on Lucene search engine and is built with RESTful APIs. It is a highly flexible and distributed search and analytics engine. Also, it provides simple deployment, maximum reliability, and easy managemen...