{"id":26998,"date":"2018-06-07T02:57:02","date_gmt":"2018-06-07T07:57:02","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=26998"},"modified":"2022-12-13T06:00:23","modified_gmt":"2022-12-13T12:00:23","slug":"how-to-install-the-elk-stack-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/","title":{"rendered":"How to Install the ELK Stack on CentOS 7"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"742\" height=\"371\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-ELK-Stack-on-CentOS-7.jpg\" alt=\"How to Install ELK Stack on CentOS 7\" class=\"wp-image-28546\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-ELK-Stack-on-CentOS-7.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-ELK-Stack-on-CentOS-7-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-ELK-Stack-on-CentOS-7-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\"><figure class=\"alignright\"><img decoding=\"async\" width=\"180\" height=\"100\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/installing-elk-stack-on-centos-7.jpg\" alt=\"installing elk stack on CentOS 7\" class=\"wp-image-28538\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/installing-elk-stack-on-centos-7.jpg 180w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/installing-elk-stack-on-centos-7-150x83.jpg 150w\" sizes=\"(max-width: 180px) 100vw, 180px\" \/><\/figure><\/div>\r\n\r\n\r\n\r\n<p>In this tutorial, we will show you <strong>how to install and configure the ELK Stack on CentOS 7<\/strong>. Elasticsearch, Logstash, and Kibana are the three open-source products which are part of the collection called ELK stack. It is a robust solution for search, analyzes, and visualization of data. As we already know Elasticsearch is distributed RESTful search and analytics NoSQL engine based on Lucene, the light-weight data processing pipeline or Logstash is used for managing events and logs from many different sources and Kibana which is a web application is used for data visualization that works on top of Elsticsearch. This tutorial on installing ELK Stack on CentOS 7, should be good for any other Linux VPS systems, but originally it was intended or in other words written and tested for a CentOS-based virtual private server. The task of <strong>installing ELK Stack on CentOS 7<\/strong> should be easy, you just need to follow the steps which are given below and the job will be done in less than ten minutes. Let&#8217;s get started.<\/p>\r\n\r\n\r\n\r\n<!--more-->\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e9c8fcb2cbe\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><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><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e9c8fcb2cbe\"  aria-label=\"Toggle\" \/><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:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#1-Prerequisites\" >1. Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#2-Install-Java\" >2. Install Java<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#3-Install-and-Configure-Elasticsearch-on-CentOS-7\" >3. Install and Configure Elasticsearch on CentOS 7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#4Install-and-configure-Kibana-on-CentOS-7\" >4.Install and configure Kibana on CentOS 7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#5-Install-and-configure-Nginx\" >5. Install and configure Nginx<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#6-Install-and-Configure-Logstash\" >6. Install and Configure Logstash<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1-Prerequisites\"><\/span>1. Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>The first thing you need in order to complete this tutorial successfully is root access to the CentOS 7 server.<br>The volume of logs that you want to gather is important because the amount of CPU, RAM, and storage required by your ELK Server depend on them.<\/p>\r\n\r\n\r\n\r\n<p><strong>System requirements:<\/strong><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\"><li>OS: CentOS 7<\/li><li>RAM: 4GB<\/li><li>CPU: 2<\/li><\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"step-install-java\"><span class=\"ez-toc-section\" id=\"2-Install-Java\"><\/span>2. Install Java<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>The Elastic stack deployment requires Java. It supports both OpenJDK and Oracle Java. we recommend using the Oracle JDK 1.8. We will install Java 8 from the official Oracle rpm package.<\/p>\r\n\r\n\r\n\r\n<p>Java 8 JDK can be downloaded with the following wget command.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">wget --no-cookies --no-check-certificate --header \"Cookie: gpw_e24=http:%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie\" \"http:\/\/download.oracle.com\/otn-pub\/java\/jdk\/8u77-b02\/jdk-8u171-linux-x64.rpm\"<\/pre>\r\n\r\n\r\n\r\n<p>The next step is the installation with this rpm command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">rpm -ivh jdk-8u171-linux-x64.rpm<\/pre>\r\n\r\n\r\n\r\n<p>At this point, you should check the Java JDK installation.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">java -version<\/pre>\r\n\r\n\r\n\r\n<p>if everything is installed all right, you will see the following output:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">java version \"1.8.0_172\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_172-b11)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3-Install-and-Configure-Elasticsearch-on-CentOS-7\"><\/span>3. Install and Configure Elasticsearch on CentOS 7<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Now is time for Elasticsearch to be installed and configured. We will use rpm package for this installation which is provided by elastic.co and then we will configure it to run on localhost ( all this is to be sure that we have made the setup secure and to make sure that it can not be reached from the outside).<\/p>\r\n\r\n\r\n\r\n<p>You should add the elastic.co key to the server prior to the installation of Elasticsearch.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">rpm --import https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch<\/pre>\r\n\r\n\r\n\r\n<p>Then you should use wget in order to download Elasticsearch 6.2 and initiate the installation<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">wget https:\/\/artifacts.elastic.co\/downloads\/elasticsearch\/elasticsearch-6.2.4.rpm\r\nrpm -ivh elasticsearch-6.2.4.rpm<\/pre>\r\n\r\n\r\n\r\n<p>At this point when Elasticsearch is already installed, you need to go to the configuration directory and edit the elasticsaerch.yml configuration file.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">nano \/etc\/elasticsearch\/elasticsearch.yml<\/pre>\r\n\r\n\r\n\r\n<p>Then you should remove a comment on line 40 in order to enable the memory lock for Elasticsearch. This disables memory swapping for Elasticsearch.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">bootstrap.memory_lock: true<\/pre>\r\n\r\n\r\n\r\n<p>After that, you need to uncomment the network.host and http.port lines in the &#8220;Network&#8221; block.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">network.host: localhost\r\nhttp.port: 9200<\/pre>\r\n\r\n\r\n\r\n<p>Don`t forget to save the file and then you can exit the editor.<\/p>\r\n\r\n\r\n\r\n<p>Next, you should edit the elasticsearch.service file for the configuration of the memory lock.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">vim \/usr\/lib\/systemd\/system\/elasticsearch.service<\/pre>\r\n\r\n\r\n\r\n<p>Uncomment LimitMEMLOCK line.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">LimitMEMLOCK=infinity<\/pre>\r\n\r\n\r\n\r\n<p>Again, don`t forget to save and then exit.<\/p>\r\n\r\n\r\n\r\n<p>The next step is to edit the sysconfig configuration file for Elasticsearch.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">nano \/etc\/sysconfig\/elasticsearch<\/pre>\r\n\r\n\r\n\r\n<p>Now you need to uncomment line 60 and make sure the value is &#8216;unlimited&#8217;.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">MAX_LOCKED_MEMORY=unlimited<\/pre>\r\n\r\n\r\n\r\n<p>Save and exit.<\/p>\r\n\r\n\r\n\r\n<p>Completing all these steps means that you have finished the Elasticsearch configuration on CentOS 7. The localhost IP address on port 9200 will run the Elasticsearch,<\/p>\r\n\r\n\r\n\r\n<p>Before you start the service first you should reload systems and enable Elasticsearch to start at boot time.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">systemctl daemon-reload\r\nsystemctl enable elasticsearch\r\nsystemctl start elasticsearch<\/pre>\r\n\r\n\r\n\r\n<p>After a few seconds the Elasticsearch will start and then you should check the open ports on the server and double check that &#8216;state&#8217; for port 9200 is &#8216;LISTEN&#8217;.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4Install-and-configure-Kibana-on-CentOS-7\"><\/span>4.Install and configure Kibana on CentOS 7<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>When you reach this point, the following thing on the list is the installation and configuration of Kibana with a Nginx web server. Kibana will listen on the localhost IP address and Nginx acts as a reverse proxy for the Kibana application.<\/p>\r\n\r\n\r\n\r\n<p>You should use wget in order to download Kibana 6.2.4 and then you should install it using the rpm command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">wget https:\/\/artifacts.elastic.co\/downloads\/kibana\/kibana-6.2.4-x86_64.rpm\r\nrpm -ivh kibana-6.2.4-x86_64.rpm<\/pre>\r\n\r\n\r\n\r\n<p>Next step is editing the Kibana configuration file.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">nano \/etc\/kibana\/kibana.yml<\/pre>\r\n\r\n\r\n\r\n<p>Uncomment the configuration lines for server.port, server.host and elasticsearch.url.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">server.port: 5601\r\nserver.host: \"localhost\"\r\nelasticsearch.url: \"http:\/\/localhost:9200\"<\/pre>\r\n\r\n\r\n\r\n<p>The changes need to be saved and then you can exit.<br>Start the Kibana service and set it to start automatically on boot:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">systemctl enable kibana\r\nsystemctl start kibana<\/pre>\r\n\r\n\r\n\r\n<p>You have now finished the installation of Kibana.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5-Install-and-configure-Nginx\"><\/span>5. Install and configure Nginx<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Next thing is to install Nginx and of course to configure it as a reverse proxy to access Kibana from the public IP address.<\/p>\r\n\r\n\r\n\r\n<p>Nginx can be found in the Epel repository, install epel-release with yum.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">yum install epel-release<\/pre>\r\n\r\n\r\n\r\n<p>Then, you need to install the Nginx and httpd-tools package.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">yum install nginx httpd-tools<\/pre>\r\n\r\n\r\n\r\n<p>The tools for the web server are contained in httpd-tools package, you can use htpasswd basic authentication for Kibana.<\/p>\r\n\r\n\r\n\r\n<p>At this point, it is necessary for us to create a new virtual host configuration file in the conf.d directory.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">nano \/etc\/nginx\/conf.d\/your_domain.com.conf<\/pre>\r\n\r\n\r\n\r\n<p>so we will be able to add a new virtual host configuration. Paste the configuration below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">server {\r\n    listen 80;\r\n \r\n    server_name your_domain.com;\r\n \r\n    auth_basic \"Restricted Access\";\r\n    auth_basic_user_file \/etc\/nginx\/htpasswd.kibana;\r\n \r\n    location \/ {\r\n        proxy_pass http:\/\/localhost:5601;\r\n        proxy_http_version 1.1;\r\n        proxy_set_header Upgrade $http_upgrade;\r\n        proxy_set_header Connection 'upgrade';\r\n        proxy_set_header Host $host;\r\n        proxy_cache_bypass $http_upgrade;\r\n    }\r\n}<\/pre>\r\n\r\n\r\n\r\n<p>Then a new basic authentication file should be created using the htpasswd command.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo htpasswd -c \/etc\/nginx\/htpasswd.kibana admin\r\nTYPE YOUR STRONG PASSWORD<\/pre>\r\n\r\n\r\n\r\n<p>Add Nginx to run at the boot time and start Nginx.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">systemctl enable nginx\r\nsystemctl start nginx<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6-Install-and-Configure-Logstash\"><\/span>6. Install and Configure Logstash<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>In the following step we would install Logsatash and configure it to centralize server logs from clients with filebeat, then filter and transform the Syslog data and move it into the stash (Elasticsearch).<\/p>\r\n\r\n\r\n\r\n<p>Use rpm in order to download Logstash and install it.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">wget https:\/\/artifacts.elastic.co\/downloads\/logstash\/logstash-6.2.4.rpm\r\nrpm -ivh logstash-6.2.4.rpm<\/pre>\r\n\r\n\r\n\r\n<p>When the installation of Logstash is completed, start the Logstash service and set it to start automatically on boot:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">systemctl restart logstash\r\nsystemctl enable logstash<\/pre>\r\n\r\n\r\n\r\n<p>The <a href=\"https:\/\/www.elastic.co\/guide\/en\/logstash\/current\/configuration.html\" rel=\"noopener\">Logstash configuration<\/a> depends on your personal preferences and the plugins you will use.<\/p>\r\n\r\n\r\n\r\n<p>That\u2019s it. You have successfully installed the ELK Stack on your CentOS 7 VPS.<\/p>\r\n\r\n\r\n\r\n<p>Follow this guide on how to <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elk-stack-on-ubuntu-20-04\/\">Install ELK stack on Ubuntu 20.04<\/a><\/p>\r\n\r\n\r\n\r\n<hr class=\"wp-block-separator\"\/>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img decoding=\"async\" width=\"300\" height=\"103\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Install-ELK-Stack-on-CentOS-7-300x103.jpg\" alt=\"Install ELK Stack on CentOS 7\" class=\"wp-image-28540\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Install-ELK-Stack-on-CentOS-7-300x103.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Install-ELK-Stack-on-CentOS-7-150x51.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Install-ELK-Stack-on-CentOS-7.jpg 350w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure><\/div>\r\n\r\n\r\n\r\n<p>Of course, you don\u2019t have to <strong>Install and Configure the ELK Stack on CentOS 7<\/strong>, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/elasticsearch-hosting.html\">Managed Elasticsearch VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install the ELK stack for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\r\n\r\n\r\n\r\n<p><strong>PS<\/strong>. If you liked this post please share it with your friends on the social networks using the buttons below or simply leave a comment in the comments section. Thanks.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install and configure the ELK Stack on CentOS 7. Elasticsearch, Logstash, &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install the ELK Stack on CentOS 7\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#more-26998\" aria-label=\"Read more about How to Install the ELK Stack on CentOS 7\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":28546,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699],"tags":[34,1568],"class_list":["post-26998","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos","tag-elk-stack","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install the ELK Stack on CentOS 7 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install the ELK Stack on CentOS 7 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install the ELK Stack on CentOS 7\" \/>\n<meta property=\"og:description\" content=\"How to Install the ELK Stack on CentOS 7 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-07T07:57:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-13T12:00:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-ELK-Stack-on-CentOS-7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install the ELK Stack on CentOS 7\",\"datePublished\":\"2018-06-07T07:57:02+00:00\",\"dateModified\":\"2022-12-13T12:00:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/\"},\"wordCount\":1042,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Install-ELK-Stack-on-CentOS-7.jpg\",\"keywords\":[\"centos\",\"ELK Stack\"],\"articleSection\":[\"CentOS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/\",\"name\":\"How to Install the ELK Stack on CentOS 7 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Install-ELK-Stack-on-CentOS-7.jpg\",\"datePublished\":\"2018-06-07T07:57:02+00:00\",\"dateModified\":\"2022-12-13T12:00:23+00:00\",\"description\":\"How to Install the ELK Stack on CentOS 7 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Install-ELK-Stack-on-CentOS-7.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Install-ELK-Stack-on-CentOS-7.jpg\",\"width\":742,\"height\":371,\"caption\":\"How to Install ELK Stack on CentOS 7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install the ELK Stack on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install the ELK Stack on CentOS 7 | RoseHosting","description":"How to Install the ELK Stack on CentOS 7 | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Install the ELK Stack on CentOS 7","og_description":"How to Install the ELK Stack on CentOS 7 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-06-07T07:57:02+00:00","article_modified_time":"2022-12-13T12:00:23+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-ELK-Stack-on-CentOS-7.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install the ELK Stack on CentOS 7","datePublished":"2018-06-07T07:57:02+00:00","dateModified":"2022-12-13T12:00:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/"},"wordCount":1042,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-ELK-Stack-on-CentOS-7.jpg","keywords":["centos","ELK Stack"],"articleSection":["CentOS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/","name":"How to Install the ELK Stack on CentOS 7 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-ELK-Stack-on-CentOS-7.jpg","datePublished":"2018-06-07T07:57:02+00:00","dateModified":"2022-12-13T12:00:23+00:00","description":"How to Install the ELK Stack on CentOS 7 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-ELK-Stack-on-CentOS-7.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-ELK-Stack-on-CentOS-7.jpg","width":742,"height":371,"caption":"How to Install ELK Stack on CentOS 7"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install the ELK Stack on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=26998"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26998\/revisions"}],"predecessor-version":[{"id":44213,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26998\/revisions\/44213"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/28546"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=26998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=26998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=26998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}