{"id":2362,"date":"2019-11-16T09:01:42","date_gmt":"2019-11-16T09:01:42","guid":{"rendered":"https:\/\/www.gologica.com\/elearning\/?p=2362"},"modified":"2025-04-06T09:01:33","modified_gmt":"2025-04-06T09:01:33","slug":"elk-stack-tutorial-getting-started-with-elk-stack","status":"publish","type":"post","link":"https:\/\/www.gologica.com\/elearning\/elk-stack-tutorial-getting-started-with-elk-stack\/","title":{"rendered":"ELK Stack Tutorial &#8211; Getting Started With ELK Stack"},"content":{"rendered":"<p class=\"wp-block-paragraph\">In the ELK Stack, ELK stands for Elasticsearch, Logstash,<br \/>\nand Kibana. In the ELK stack, Logstash defined as it extracts the logging data<br \/>\nor other events from different input sources. Logstash processes the events and<br \/>\nlater stores it in Elasticsearch. Kibana defined as a web interface, which<br \/>\naccesses the logging data form Elasticsearch and visualizes it.<\/p>\n<p class=\"wp-block-paragraph\"><strong>In this tutorial, you will learn<\/strong>                                          <\/p>\n<p class=\"wp-block-paragraph\">Introduction to ELK Stack<\/p>\n<p class=\"wp-block-paragraph\">ELK Stack Architecture<\/p>\n<p class=\"wp-block-paragraph\">Introduction to Elastic Search<\/p>\n<p class=\"wp-block-paragraph\">What is Logstash?<\/p>\n<p class=\"wp-block-paragraph\">What is Kibana?<\/p>\n<p class=\"wp-block-paragraph\">Case Studies in ELK Stack<\/p>\n<h4 class=\"wp-block-heading\" id=\"ending\"><strong>Introduction to ELK Stack<\/strong>                         <\/p>\n<\/h4>\n<p class=\"wp-block-paragraph\">The ELK Stack is a collection of three open-source products<br \/>\nthat are Elasticsearch, Logstash, and Kibana. They all are developed,<br \/>\nmaintained, and managed by the company Elastic.<\/p>\n<p class=\"wp-block-paragraph\">E stands for Elastic Search: used for storing logs<\/p>\n<p class=\"wp-block-paragraph\">L stands for LogStash: used for shipping as well as the<br \/>\nprocessing and storing logs<\/p>\n<p class=\"wp-block-paragraph\">K stands for Kibana: It is a visualization tool (a web<br \/>\ninterface) which is hosted through Nginx or Apache<\/p>\n<p class=\"wp-block-paragraph\">ELK Stack is designed to allow users to take data from any<br \/>\nsource, in any format, and to search, visualize, and analyze that data in<br \/>\nreal-time.<\/p>\n<p class=\"wp-block-paragraph\">ELK provides centralized logging that is useful when attempting to identify the problems with applications or servers. It allows you to search all your logs in a single place. It also helps to find issues that occur in multiple servers by connecting their logs during a specific time frame.<\/p>\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1333\" height=\"561\" src=\"https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/elkstack.png\" alt=\"\" class=\"wp-image-2364\" srcset=\"https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/elkstack.png 1333w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/elkstack-460x194.png 460w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/elkstack-768x323.png 768w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/elkstack-1024x431.png 1024w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/elkstack-100x42.png 100w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/elkstack-600x253.png 600w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/elkstack-120x51.png 120w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/elkstack-310x130.png 310w\" sizes=\"(max-width: 1333px) 100vw, 1333px\" \/><\/figure>\n<p class=\"wp-block-paragraph\"><strong>ELK Stack Architecture<\/strong>                                <\/p>\n<p class=\"wp-block-paragraph\">It is the architecture of ELK Stack which shows the proper<br \/>\norder of log flow within ELK. Here, the logs generated from various sources are<br \/>\ncollected and processed by Logstash, based on the provided filter criteria.<br \/>\nLogstash then pipes those logs to Elasticsearch which then analyzes and<br \/>\nsearches the data. Finally, using Kibana, the logs are visualized and managed<br \/>\nas per the requirements.<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Logs:<\/strong> Server logs that need to be analyzed are identified<\/li>\n<li><strong>Logstash:<\/strong> Collect logs and events data. It even parses and transforms data<\/li>\n<li><strong>ElasticSearch:<\/strong> The transformed data from Logstash is Store, Search, and indexed.<\/li>\n<li><strong>Kibana:<\/strong> It uses Elasticsearch DB to Explore, Visualize, and Share  <\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.gologica.com\/course\/elk-stack-training\/\"><img decoding=\"async\" width=\"850\" height=\"200\" src=\"https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-3.png\" alt=\"ELK Stack\" class=\"wp-image-3133\" srcset=\"https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-3.png 850w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-3-460x108.png 460w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-3-768x181.png 768w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-3-100x24.png 100w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-3-600x141.png 600w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-3-120x28.png 120w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-3-310x73.png 310w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n<p class=\"wp-block-paragraph\"><strong>Introduction to Elasticsearch<\/strong>                                                 <\/p>\n<p class=\"wp-block-paragraph\">Elasticsearch is a NoSQL database. It is based on the Lucene<br \/>\nsearch engine, and it is built with RESTful APIS. It offers maximum reliability,<br \/>\nsimple deployment, and easy management. It also offers advanced queries to<br \/>\nperform detail analysis and stores all the data centrally. It helps execute a<br \/>\nquick search of the documents.<\/p>\n<p class=\"wp-block-paragraph\">Elasticsearch also allows you to store, search and analyze<br \/>\nthe big volumes of data. It is mostly used as the underlying engine to power<br \/>\napplications that completed search requirements. It has been adopted in search<br \/>\nengine platforms for modern web and mobile applications. Apart from a quick<br \/>\nsearch, the tool offers complex analytics and many advanced features.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Features of Elastic search<\/strong>                                                               <\/p>\n<ul class=\"wp-block-list\">\n<li>Open source search server is written by using<br \/>\nJava<\/li>\n<li>It used to index any kind of heterogeneous data<\/li>\n<li>Has REST API web-interface with JSON output<\/li>\n<li>Full-Text Search<\/li>\n<li>Near Real-Time (NRT) search<\/li>\n<li>Sharded, replicated searchable, JSON document<br \/>\nstore<\/li>\n<li>Schema-free, JSON &amp; REST based distributed<br \/>\ndocument store<\/li>\n<li>Multi-language &amp; Geolocation support<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\"><strong>Advantages of Elasticsearch<\/strong>                                                        <\/p>\n<ul class=\"wp-block-list\">\n<li>Store schema-less data and also creates a schema<br \/>\nfor your data<\/li>\n<li>Manipulate your data record by record with the<br \/>\nhelp of Multi-document APIs<\/li>\n<li>Perform filtering and querying your data for<br \/>\ninsights<\/li>\n<li>Based on Apache Lucene and provides RESTful API<\/li>\n<li>Provides horizontal scalability, reliability,<br \/>\nand multitenant capability for real-time use of indexing to make it faster<br \/>\nsearch<\/li>\n<li>Helps you to scale vertically and horizontally<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\"><strong>What is Logstash?<\/strong>                                                        <\/p>\n<p class=\"wp-block-paragraph\">Logstash is the data collection pipeline tool. It collects<br \/>\ndata inputs and feeds into the Elasticsearch. It gathers all types of data from<br \/>\ndifferent sources and makes it available for further use.<\/p>\n<p class=\"wp-block-paragraph\">Logstash can unify data from disparate sources and normalize<br \/>\nthe data into your desired destinations. It allows you to cleanse and<br \/>\ndemocratize all your data for analytics and visualization of use cases.<\/p>\n<p class=\"wp-block-paragraph\">It consists of three components:<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Input:<\/strong><br \/>\nIn this, passing logs to process them into machine understandable format<\/li>\n<li><strong>Filters:<\/strong><br \/>\nIt is a set of conditions to perform a particular action or event<\/li>\n<li><strong>Output:<\/strong><br \/>\nDecision maker for processed log or event <\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\"><strong>Features of Logstash<\/strong>                                   <\/p>\n<ul class=\"wp-block-list\">\n<li>Using internal queues events are passed through each phase <\/li>\n<li>Allows different inputs for your logs<\/li>\n<li>Filtering\/parsing for your logs<\/li>\n<li>Advantage of Logstash<\/li>\n<li>Offers centralize the data processing<\/li>\n<li>It analyzes a large variety of structured\/unstructured data and events<\/li>\n<li>Offers plugins to connect with different types of input sources and platforms              <\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.gologica.com\/course\/elk-stack-training\/\"><img decoding=\"async\" width=\"850\" height=\"200\" src=\"https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-2.png\" alt=\"elk stack\" class=\"wp-image-3131\" srcset=\"https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-2.png 850w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-2-460x108.png 460w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-2-768x181.png 768w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-2-100x24.png 100w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-2-600x141.png 600w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-2-120x28.png 120w, https:\/\/www.gologica.com\/elearning\/wp-content\/uploads\/2019\/11\/Elasticsearch-Course-IMG-2-310x73.png 310w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n<p class=\"wp-block-paragraph\"><strong>What is Kibana?<\/strong>                     <\/p>\n<p class=\"wp-block-paragraph\">Kibana is a data visualization that completes the ELK stack.<br \/>\nThis tool is used to visualizing the Elasticsearch documents and helps<br \/>\ndevelopers to have a quick insight into it. Kibana dashboard offers different<br \/>\ninteractive diagrams, geospatial data, and graphs to visualize complex quires.<\/p>\n<p class=\"wp-block-paragraph\">It can be used for search, interact, and view with data<br \/>\nstored in Elasticsearch directories. Kibana helps you to perform advanced data<br \/>\nanalysis and visualize your data in a variety of tables, charts, and maps.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Features of Kibana<\/strong>                                             <\/p>\n<ul class=\"wp-block-list\">\n<li>Powerful front-end dashboard which is capable of<br \/>\nvisualizing indexed information from the elastic cluster<\/li>\n<li>Enables real-time search of indexed information<\/li>\n<li>You can search, view, and interact with data<br \/>\nstored in Elasticsearch<\/li>\n<li>Execute queries on data &amp; visualize results<br \/>\nin charts, tables, and maps<\/li>\n<li>Configurable dashboard to slice and dice<br \/>\nlogstash logs in elastic search<\/li>\n<li>Capable of providing historical data in the form<br \/>\nof graphs, charts, etc.<\/li>\n<li>Real-time dashboards which are easily<br \/>\nconfigurable<\/li>\n<li>Enables real-time search of indexed information<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\"><strong>Advantages and Disadvantages of Kibana<\/strong>                                           <\/p>\n<ul class=\"wp-block-list\">\n<li>Easy visualizing<\/li>\n<li>Fully integrated with Elasticsearch<\/li>\n<li>Visualization tool<\/li>\n<li>Offers real-time analysis, charting,<br \/>\nsummarization, and debugging capabilities<\/li>\n<li>Provides an instinctive and user-friendly<br \/>\ninterface<\/li>\n<li>Allows sharing of snapshots of the logs searched<br \/>\nthrough<\/li>\n<li>Permits saving the dashboard and managing<br \/>\nmultiple dashboards<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\"><strong>Case Studies in ELK Stack<\/strong>                                                                   <\/p>\n<p class=\"wp-block-paragraph\"><strong>NetFlix<\/strong>                             <\/p>\n<p class=\"wp-block-paragraph\">Netflix heavily relies on the ELK stack. The companies using<br \/>\nthe ELK stack to monitor and analyze customer service operation&#8217;s security log.<br \/>\nIt allows them to store, index, and search documents from more than fifteen<br \/>\nclusters which comprise almost 800 nodes.<\/p>\n<p class=\"wp-block-paragraph\"><strong>LinkedIn<\/strong>                                    <\/p>\n<p class=\"wp-block-paragraph\">The famous social media marketing site is LinkedIn that uses<br \/>\nELK stack to monitor performance and security. The IT team integrated ELK with<br \/>\nKafka to support its load in real-time. Their ELK operation consists of more<br \/>\nthan 100 clusters across six different data centers.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Tripwire<\/strong>                           <\/p>\n<p class=\"wp-block-paragraph\">Tripwire is a worldwide Security Information Event<br \/>\nManagement system. The business uses ELK to support information packet log<br \/>\nanalysis.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Medium<\/strong>                        <\/p>\n<p class=\"wp-block-paragraph\">Medium is a famous blog-publishing platform. They use the<br \/>\nELK stack to debug their production issues. The business also uses ELK to<br \/>\ndetect DynamoDB hotpots. Moreover, using this stack, the company can support<br \/>\nthousands of published posts each week as well as 25 million unique readers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the ELK Stack, ELK stands for Elasticsearch, Logstash, and Kibana. In the ELK stack, Logstash defined as it extracts &hellip;<\/p>\n","protected":false},"author":1,"featured_media":2365,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"coauthors":[182],"class_list":["post-2362","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-computing-interview-questions","user-has-not-earned"],"_links":{"self":[{"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/posts\/2362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/comments?post=2362"}],"version-history":[{"count":6,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/posts\/2362\/revisions"}],"predecessor-version":[{"id":3134,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/posts\/2362\/revisions\/3134"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/media\/2365"}],"wp:attachment":[{"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/media?parent=2362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/categories?post=2362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/tags?post=2362"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.gologica.com\/elearning\/wp-json\/wp\/v2\/coauthors?post=2362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}