{"id":4120,"date":"2022-10-14T06:01:12","date_gmt":"2022-10-14T06:01:12","guid":{"rendered":"https:\/\/arzhost.com\/blogs\/?p=4120"},"modified":"2025-09-18T14:22:47","modified_gmt":"2025-09-18T09:22:47","slug":"elastic-stack-install-ubuntu","status":"publish","type":"post","link":"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/","title":{"rendered":"How To Install Easy Elastic Stack Install Ubuntu"},"content":{"rendered":"\n<p>The Elastic Stack Install Ubuntu, originally the ELK Stack, is a group of open-source software developed by Elastic that enables centralized logging, or the ability to search, analyses, and visualize logs created from any source and in any format.<\/p>\n\n\n\n<p>Since centralized logging enables you to browse through all of your logs in one location, it can be helpful when trying to pinpoint issues with your servers or apps.<\/p>\n\n\n\n<p>It&#8217;s also helpful because it makes it possible to locate problems that affect numerous servers by comparing their logs over a predetermined period of time.<\/p>\n\n\n\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/M1jOnvvETF4\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n\n\n<p><strong><u>There are four primary parts to the elastic stack:<\/u><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>All of the gathered data is stored in the distributed RESTful search engine Elasticsearch.<\/li>\n\n\n\n<li><strong>Logstash:<\/strong> The Elastic Stack&#8217;s data processing component that transmits incoming data to Elasticsearch.<\/li>\n\n\n\n<li><strong>Kibana:<\/strong> is a web-based log search and visualization tool.<\/li>\n\n\n\n<li><strong>Beats:<\/strong> Small, specialized data shippers that may transmit information to Logstash or Elasticsearch from hundreds or thousands of devices.<\/li>\n<\/ul>\n\n\n\n<p>You will set up the Elastic Stack on an Ubuntu 22.04 server in this tutorial. You will discover how to set up and configure each element of the <span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/\">Elastic Stack Install Ubuntu<\/a> <\/strong><\/span>to collect and display system logs, including File beat, a Beat used for forwarding and centralizing files and logs.<\/p>\n\n\n\n<p>Kibana will also be proxied using Nginx so that it may be accessed from a web browser because it is typically only accessible on the localhost. On a single server, which we will refer to as our Elastic Stack server, we will install each of these parts.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/#What_is_the_ELK_Stack\" >What is the ELK Stack?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/#Why_is_ELK_So_Popular\" >Why is ELK So Popular?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/#Why_is_Log_Analysis_Growing_in_Relevance\" >Why is Log Analysis Growing in Relevance?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/#How_to_Conduct_Log_Analysis_Using_the_ELK_Stack\" >How to Conduct Log Analysis Using the ELK Stack?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/#Instruction_how_to_Installing_Elastic_Stack_on_Ubuntu_2204_LTS\" >Instruction how to Installing Elastic Stack on Ubuntu 22.04 LTS<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/#Step_1_Installing_the_required_modules\" >Step # 1: Installing the required modules<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/#Step_2_Install_and_Configure_Elasticsearch_on_Ubuntu\" >Step # 2: Install and Configure Elasticsearch on Ubuntu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/#Step_3_Install_and_Configure_Kibana_on_Ubuntu\" >Step # 3: Install and Configure Kibana on Ubuntu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/#Step_4_Install_and_Configure_Logstash_on_Ubuntu\" >Step # 4: Install and Configure Logstash on Ubuntu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/arzhost.com\/blogs\/elastic-stack-install-ubuntu\/#Step_5_Install_and_Configure_Filebeat_on_Ubuntu\" >Step # 5: Install and Configure Filebeat on Ubuntu<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_the_ELK_Stack\"><\/span><strong>What is the ELK Stack?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The Elastic Stack Install Ubuntu, which was created, managed, and maintained by Elastic, originally consisted of three open-source products: Elasticsearch, Logstash, and Kibana. Beats&#8217; debut and later addition made the stack a four-legged project.<\/p>\n\n\n\n<p>Based on the Apache Lucene search engine, Elasticsearch is an open source full-text search and analysis tool. A log aggregator called Logstash gathers data from numerous input sources, performs various upgrades and transformations, and then sends the data to a variety of supported output destinations.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"536\" title=\"what is the elk stack\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/what-is-the-elk-stack-1-1024x536.jpg\" alt=\"what is the elk stack\" class=\"wp-image-13334\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/what-is-the-elk-stack-1-1024x536.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/what-is-the-elk-stack-1-300x157.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/what-is-the-elk-stack-1-768x402.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/what-is-the-elk-stack-1.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">what is the elk stack<\/figcaption><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>Kibana is a visualization layer that sits on top of Elasticsearch and gives users access to data visualization and analysis tools. Last but certainly not least, Beats are little agents that are installed on edge hosts to gather various kinds of data for transmission into the stack.<\/p>\n\n\n\n<p>For the most part, these various elements are combined to monitor, debug, and secure IT infrastructures (though there are many more use cases for the ELK Stack such as business intelligence and web analytics).<\/p>\n\n\n\n<p>Elasticsearch indexes and stores the data, Beats and Logstash handle data collection and processing, and Kibana provide a user interface for querying and displaying the data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_is_ELK_So_Popular\"><\/span><strong>Why is ELK So Popular?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Because it meets a demand in the log management and analytics area, the ELK Stack is well-liked. Engineering teams need a log management and analytics solution to help them monitor highly distributed, dynamic, and noisy environments, as well as the IT infrastructure on which current applications are deployed.<\/p>\n\n\n\n<p>The ELK Stack aids users by offering a healthy platform that gathers and processes data from many data sources, stores that data in a single, centralized data store that can scale as data grows, and offers a selection of tools for data analysis.<\/p>\n\n\n\n<p>The Elastic Stack Install Ubuntu is open source, of course. The preference for open source goods among IT businesses may be the sole factor contributing to the stack&#8217;s success. Organizations may far more simply onboard new employees and avoid vendor lock-in by utilizing open source.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"536\" title=\"why is elk so popular\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/why-is-elk-so-popular-1-1024x536.jpg\" alt=\"why is elk so popular\" class=\"wp-image-13335\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/why-is-elk-so-popular-1-1024x536.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/why-is-elk-so-popular-1-300x157.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/why-is-elk-so-popular-1-768x402.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/why-is-elk-so-popular-1.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">why is elk so popular<\/figcaption><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>Kibana usage is common knowledge, right? Open source also refers to a thriving community that constantly promotes new functions and innovation and offers assistance when required.<\/p>\n\n\n\n<p>Yes, Splunk has long held a dominant position in the industry. However, its extensive functions are becoming less and less valuable for the high cost, particularly for startups and smaller businesses like SaaS products.<\/p>\n\n\n\n<p>Splunk has around 15,000 users, whereas ELK is downloaded far more frequently than Splunk&#8217;s complete user base in a single month. Even though ELK lacks some of Splunk&#8217;s functionality. It does not require all of the analytical bells and whistles. ELK is a cheap platform for log management and analytics that is straightforward but effective.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_is_Log_Analysis_Growing_in_Relevance\"><\/span><strong>Why is Log Analysis Growing in Relevance?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Organizations cannot afford even a single second of application outage or sluggish performance in the highly competitive world of today. Performance problems can hurt a brand and, in some situations, result in a loss of direct income.<\/p>\n\n\n\n<p>For the same reason, businesses cannot afford to have their security compromised, and failing to adhere to legal requirements can cost them dearly in fines and hurt their bottom line.<\/p>\n\n\n\n<p>Engineers rely on the various forms of data created by their applications and the infrastructure supporting them to ensure apps are always available, performant, and secure. This information whether it comes from event logs, metrics, or both allows for the monitoring of these systems as well as the detection and correction of problems as they arise.<\/p>\n\n\n\n<p>Logs and the various tools for examining them have long been around. The underlying architecture of the environments producing these logs, however, has evolved. Microservice, containers, and orchestration infrastructure are now common in architecture and are used in hybrid environments, across clouds, and on the cloud.<\/p>\n\n\n\n<p>Additionally, the sheer amount of data produced by these systems is expanding rapidly and is a challenge in and of itself. The time when an engineer could easily SSH into a machine and grep a log file is long gone. In setups with hundreds of containers producing TBs of log data each day, this is impossible.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"536\" title=\"why is log analysis growing in relevance\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/why-is-log-analysis-growing-in-relevance-1-1024x536.jpg\" alt=\"why is log analysis growing in relevance\" class=\"wp-image-13337\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/why-is-log-analysis-growing-in-relevance-1-1024x536.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/why-is-log-analysis-growing-in-relevance-1-300x157.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/why-is-log-analysis-growing-in-relevance-1-768x402.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/why-is-log-analysis-growing-in-relevance-1.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">why is log analysis growing in relevance<\/figcaption><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>This is where centralized log management and analytics tools, like the Elastic Stack Install Ubuntu, come into play. They give engineers\u2014whether they work in DevOps, IT Operations, or SRE\u2014the visibility they need to guarantee that apps are always available and performant.<\/p>\n\n\n\n<p><strong><u>The following essential capabilities are part of contemporary log management and analysis solutions:<\/u><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Aggregation is the process of gathering and sending logs from many data sources.<\/li>\n\n\n\n<li>Processing enables log messages to be converted into useful data for simpler analysis.<\/li>\n\n\n\n<li>Storage is the capacity to keep data for long periods of time in order to support use cases for trend research, monitoring, and security.<\/li>\n\n\n\n<li>Analysis is the capacity to examine data by querying it and building dashboards and visualizations on top of it.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Conduct_Log_Analysis_Using_the_ELK_Stack\"><\/span><strong>How to Conduct Log Analysis Using the ELK Stack?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As I previously stated, the various parts of the Elastic Stack Install Ubuntu when combined offer a straightforward yet effective solution for log management and analytics.<\/p>\n\n\n\n<p>The various parts of the ELK Stack were created to work together harmoniously and without a lot of additional configuration. However, depending on your environment and use case, you may wind up constructing the stack very differently.<\/p>\n\n\n\n<p><u>The traditional architecture will seem as follows for a small development environment:<\/u><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/small-sized-development.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"149\" title=\"small sized development\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/small-sized-development.jpg\" alt=\"small sized development\" class=\"wp-image-4122\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/small-sized-development.jpg 727w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/small-sized-development-300x61.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/small-sized-development-640x131.jpg 640w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/small-sized-development-400x82.jpg 400w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><\/a><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p><u>However, more components will likely be added to your logging architecture for resiliency (Kafka, RabbitMQ, Redis), security (nginx), and managing increasingly complicated pipelines designed for processing massive amounts of data in production:<\/u><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/handling-more-complex-pipeline.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"350\" title=\"handling more complex pipeline\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/handling-more-complex-pipeline.jpg\" alt=\"handling more complex pipeline\" class=\"wp-image-4123\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/handling-more-complex-pipeline.jpg 788w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/handling-more-complex-pipeline-300x133.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/handling-more-complex-pipeline-768x341.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/handling-more-complex-pipeline-640x284.jpg 640w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2022\/10\/handling-more-complex-pipeline-400x178.jpg 400w\" sizes=\"(max-width: 788px) 100vw, 788px\" \/><\/a><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>For the purposes of example, this diagram has obviously been simplified. Full replication across regions or segments of your data centre for high availability, multiple Elasticsearch nodes, possibly multiple Logstash instances, an archiving mechanism, an alerting plugin, and other components make up a production-grade architecture.<\/p>\n\n\n\n<p>In the pertinent part below, you can get a detailed explanation of what is required to deploy Elastic Stack Install Ubuntu as a production-grade log management and analytics solution.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Instruction_how_to_Installing_Elastic_Stack_on_Ubuntu_2204_LTS\"><\/span><strong>Instruction how to Installing Elastic Stack on Ubuntu 22.04 LTS<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Additionally, it&#8217;s critical that you maintain your server safe by installing a TLS\/SSL certificate because the Elastic Stack is used to access crucial information about your server that you would not want unauthorized users to access. Although optional, doing so is highly recommended.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"536\" title=\"how to installing elastic stack\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-installing-elastic-stack-1024x536.jpg\" alt=\"how to installing elastic stack\" class=\"wp-image-13338\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-installing-elastic-stack-1024x536.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-installing-elastic-stack-300x157.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-installing-elastic-stack-768x402.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-installing-elastic-stack.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">how to installing elastic stack<\/figcaption><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>Elastic Stack Install Ubuntu, often referred to as elk stack, is a collection of open source, free technologies made to gather, analyses, and visualize data in real time. The details of the steps are as follows:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Installing_the_required_modules\"><\/span><strong>Step # 1: Installing the required modules<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>update the system packages;<\/code><\/li>\n\n\n\n<li><code>sudo apt-get update<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Install openjdk and other dependencies before installing elastic stack;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo apt-get install openjdk-11-jdk<\/code><\/li>\n\n\n\n<li><code>sudo apt-get install wget<\/code><\/li>\n\n\n\n<li><code>sudo apt-get install apt-transport-https<\/code><\/li>\n\n\n\n<li><code>sudo apt-get install curl<\/code><\/li>\n\n\n\n<li><code>sudo apt-get install gnupg2<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>install all above listed modules in one command;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo apt-get install openjdk-11-jdk wget apt-transport-https curl gnupg2 -y<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>check java version;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>java -version<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Install_and_Configure_Elasticsearch_on_Ubuntu\"><\/span><strong>Step # 2: Install and Configure Elasticsearch on Ubuntu<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Because Elasticsearch is not already pre-installed in Ubuntu, we will first need to add a signing key and repositories to our system.<\/p>\n\n\n\n<p><u>Follow the below command to add Elasticsearch signing key;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>wget -qO \u2014 https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch \u2014 no-check-certificate | sudo apt-key add -<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Next add the repository in \/etc\/apt\/sources.list.d\/elastic-7.x.list using below command;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>echo \u201cdeb https:\/\/artifacts.elastic.co\/packages\/7.x\/apt stable main\u201d | sudo tee -a \/etc\/apt\/sources.list.d\/elastic-7.x.list<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>after running the repo update the system package;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo apt-get update -y<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Install elasticsearch;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo apt-get install elasticsearch -y<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Do modifications on Elasticsearch configuration file;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo nano \/etc\/elasticsearch\/elasticsearch.yml<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>change these lines in \u2018network\u2019 section;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>host: localhost<\/code><\/li>\n\n\n\n<li><code>#http. port: 9200(remove \u2018#\u2019 here)<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>add this line in \u2018discovery\u2019 section;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>type: single-node<\/code><\/li>\n\n\n\n<li><code>save config file and exit.<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>start the elacticsearch service;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl start elasticsearch<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>To enable elacticsearch at system startup;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl enable elasticsearch<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>To check elasticsearch service status;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl status elasticsearch<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Install_and_Configure_Kibana_on_Ubuntu\"><\/span><strong>Step # 3: Install and Configure Kibana on Ubuntu<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><u>install kibana on Ubuntu;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo apt-get install kibana<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Do modifications on kibana configuration file;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo nano \/etc\/kibana\/kibana.yml<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>remove \u2018#\u2019 in the below lines;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Port: 5601<\/code><\/li>\n\n\n\n<li><code>Host: \u201clocalhost\u201d<\/code><\/li>\n\n\n\n<li>Hosts: [\u201chttp:\/\/localhost:9200&#8243;]<\/li>\n<\/ul>\n\n\n\n<p><u>save config file and exit.<\/u><\/p>\n\n\n\n<p><u>start kibana service;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl start kibana<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>To enable kibana at system startup;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl enable kibana<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>To check the status of kibana service;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl status kibana<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Install_and_Configure_Logstash_on_Ubuntu\"><\/span><strong>Step # 4: Install and Configure Logstash on Ubuntu<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><u>install logstash on Ubuntu;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo apt-get install logstash<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Create the below config file and insert below lines to load logstash beat;<\/u><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>sudo nano \/etc\/logstash\/conf.d\/2-beats-input.conf<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>input {<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>beats {<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>port =&gt; 5044<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>}<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>}<\/strong><\/p>\n\n\n\n<p><u>save and close the file.<\/u><\/p>\n\n\n\n<p><u>Elastic Stack Install Ubuntu, Create the below config file and insert below lines to filter the logstash inputs and generate the output;<\/u><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>sudo nano \/etc\/logstash\/conf.d\/2-elasticsearch-output.conf<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>output {<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>elasticsearch {<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>hosts =&gt; [\u201clocalhost:9200\u201d]<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>manage template =&gt; false<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>index =&gt; \u201c%{[@metadata] [beat]}-%{[@metadata] [version]}-%{+YYYY.MM.dd}\u201d<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>}<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>}<\/strong><\/p>\n\n\n\n<p><u>save and close the editor.<\/u><\/p>\n\n\n\n<p><u>start logstash service;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl start logstash<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>To enable logstash at system startup;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl enable logstash<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>To stop logstash service;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl stop logstash (do not run this unless its necessary)<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>To check status of logstash;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl status Logstash<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_5_Install_and_Configure_Filebeat_on_Ubuntu\"><\/span><strong>Step # 5: Install and Configure Filebeat on Ubuntu<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><u>install Filebeat to send logs to Logstash;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo apt-get install filebeat<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Do modifications on filebeat configuration file;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo nano \/etc\/filebeat\/filebeat.yml<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Comment the below lines<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>#output. Elasticsearch:<\/code><\/li>\n\n\n\n<li><code>#Array of hosts to connect to.<\/code><\/li>\n\n\n\n<li><code>#hosts: [\u201clocalhost:9200\u201d]<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Uncomment the below lines<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Logstash:<\/code><\/li>\n\n\n\n<li><code>hosts: [\u201clocalhost:5044\u201d]<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>save &amp; exit editor.<\/u><\/p>\n\n\n\n<p><u>start filebeat service;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl start filebeat<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>To enable filebeat at system startup;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl enable filebeat<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>To check status of filebeat service;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo systemctl status filebeat<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Enable filebeat system module;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo filebeat modules enable system<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Enable filebeat logstash module;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo filebeat modules enable logstash<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Load the index template;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>filebeat setup \u2014 index-management -E output. logstash. Enabled=false -E \u2018output. elasticsearch. Hosts=[\u201clocalhost:9200\u201d]\u2019<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>start filebeat service;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo service filebeat start<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>check whether elasticsearch is receiving catalog from filebeat;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>curl -XGET http:\/\/localhost:9200\/_cat\/indices?v<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>Access Kibana Web Interface by using the URL<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>http:\/\/localhost:5601<\/code><\/li>\n<\/ul>\n\n\n\n<p><u>execute the below command if integration check gave an error<\/u><\/p>\n\n\n\n<p><u>Enable filebeat kibana module;<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>sudo filebeat modules enable kibana<\/code><\/li>\n<\/ul>\n\n\n\n<p>Much of our content covers the open source Elastic Stack Install <a href=\"https:\/\/en.wikipedia.org\/wiki\/Ubuntu\" target=\"_blank\" rel=\"noopener\">Ubuntu<\/a> and that appears in different platforms. Some features are unavailable in one version and available in the others.<\/p>\n\n\n\n<p><strong>Latest Posts:<\/strong><\/p>\n\n\n<ul class=\"wp-block-latest-posts__list wp-block-latest-posts\"><li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/arzhost.com\/blogs\/how-to-fix-403-forbidden-error-wordpress\/\">How To Fix 403 Forbidden Error WordPress<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/arzhost.com\/blogs\/how-to-get-the-most-out-of-claude-ai\/\">How To Get The Most Out Of Claude Ai<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/arzhost.com\/blogs\/bad-gateway-error-502-the-ultimate-guide-to-quick-fixes\/\">Bad Gateway Error (502): The Ultimate Guide to Quick Fixes<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/arzhost.com\/blogs\/a-deep-dive-into-todays-best-linux-distros\/\">A Deep Dive Into Today\u2019s Best Linux Distros<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/arzhost.com\/blogs\/domain-investor-terms-powerful-strategy\/\">Domain Investor Terms: Expert Insight on Powerful Strategy<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>The Elastic Stack Install Ubuntu, originally the ELK Stack, is a group of open-source software developed by Elastic that enables centralized logging, or the ability to search, analyses, and visualize logs created from any source and in any format. Since centralized logging enables you to browse through all of your logs in one location, it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6335,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"table_tags":[],"class_list":["post-4120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server"],"_links":{"self":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/4120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/comments?post=4120"}],"version-history":[{"count":5,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/4120\/revisions"}],"predecessor-version":[{"id":13339,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/4120\/revisions\/13339"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media\/6335"}],"wp:attachment":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media?parent=4120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/categories?post=4120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/tags?post=4120"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/table_tags?post=4120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}