{"id":26939,"date":"2018-05-28T03:17:54","date_gmt":"2018-05-28T08:17:54","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=26939"},"modified":"2022-12-30T05:16:13","modified_gmt":"2022-12-30T11:16:13","slug":"how-to-install-the-elk-stack-on-debian-9","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/","title":{"rendered":"How to Install ELK Stack on Debian 9"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-26963\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-ELK-stack-on-Debian-9.jpg\" alt=\"How to Install ELK stack on Debian 9\" width=\"742\" height=\"371\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-ELK-stack-on-Debian-9.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-ELK-stack-on-Debian-9-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-ELK-stack-on-Debian-9-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-28561\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/installing-elk-stack-on-debian-9-1.jpg\" alt=\"installing elk stack on debian 9\" width=\"180\" height=\"100\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/installing-elk-stack-on-debian-9-1.jpg 180w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/installing-elk-stack-on-debian-9-1-150x83.jpg 150w\" sizes=\"(max-width: 180px) 100vw, 180px\" \/>In this tutorial, we will show you <strong>how to install\u00a0 ELK Stack on Debian 9<\/strong>. ELK stack is a collection of three open-source products, <a href=\"https:\/\/www.elastic.co\/products\/elasticsearch\" target=\"_blank\" rel=\"noopener noreferrer\">Elasticsearch<\/a>, <a href=\"https:\/\/www.elastic.co\/products\/logstash\" target=\"_blank\" rel=\"noopener noreferrer\">Logstash<\/a>, and <a href=\"https:\/\/www.elastic.co\/products\/kibana\">Kibana<\/a>, and is a robust solution for searching, analyzing, and visualizing data. <a href=\"https:\/\/www.rosehosting.com\/elasticsearch-hosting.html\">Elasticsearch<\/a> is a distributed, RESTful search and analytics NoSQL engine based on Lucene, Logstash is a light-weight data processing pipeline for managing events and logs from a wide variety of sources and Kibana is a web application for visualizing data that works on top of Elasticsearch. This ELK Stack tutorial should work on other Linux VPS systems as well but be tested and written for a <a title=\"Debian VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" rel=\"noopener\">Debian 9 VPS<\/a>. <strong>Installing\u00a0ELK Stack on Debian 9<\/strong> is an easy and straightforward task, just follow the steps below, and you should have it installed in less than 10 minutes.<\/p>\n<p><!--more--><\/p>\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-69ebc7db41176\" 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-69ebc7db41176\"  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-debian-9\/#1-Requirements\" >1. Requirements<\/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-debian-9\/#2-Update-the-system-and-install-necessary-packages\" >2. Update the system and install necessary packages<\/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-debian-9\/#3-Install-Java\" >3. Install Java<\/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-debian-9\/#4-Install-and-configure-Elasticsearch-on-Debian-9\" >4. Install and configure Elasticsearch\u00a0on Debian 9<\/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-debian-9\/#5-Install-and-configure-Kibana-on-Debian-9\" >5. Install and configure Kibana\u00a0on Debian 9<\/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-debian-9\/#6-Install-and-configure-Nginx-as-a-reverse-proxy\" >6. Install and configure Nginx as a reverse proxy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/#7-Install-Logstash-on-Debian-9\" >7. Install Logstash on Debian 9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/#8-Access-Kibana\" >8. Access Kibana<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Requirements\"><\/span>1. Requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To complete this tutorial, you will need:<\/p>\n<ul>\n<li>A <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">Debian 9 VPS<\/a><\/li>\n<li>A user with sudo privileges<\/li>\n<\/ul>\n<p>If you have a VPS with us, we&#8217;ll install the ELK Stack for you for free.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"2-Update-the-system-and-install-necessary-packages\"><\/span>2. Update the system and install necessary packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre>sudo apt-get update &amp;&amp; apt-get -y upgrade\r\nsudo apt-get install apt-transport-https software-properties-common wget<\/pre>\n<p>You should always <a href=\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\">keep the software on your Linux VPS up to date<\/a> and <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enable-automatic-updates-on-a-linux-vps\/\">set up automatic security and critical updates<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"3-Install-Java\"><\/span>3. Install Java<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Elasticsearch requires at least Java 8 in order to run. It supports both OpenJDK and Oracle Java. In this guide, we will install OpenJDK version 8.<\/p>\n<p>To install OpenJDK run the following command:<\/p>\n<pre>sudo apt install openjdk-8-jdk<\/pre>\n<p>To check if everything is installed correctly, issue:<\/p>\n<pre>java -version<\/pre>\n<p>and you should see something like the following:<\/p>\n<pre>openjdk version \"1.8.0_171\"\r\nOpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-1~deb9u1-b11)\r\nOpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Install-and-configure-Elasticsearch-on-Debian-9\"><\/span>4. Install and configure Elasticsearch\u00a0on Debian 9<img decoding=\"async\" class=\"size-full wp-image-26957 aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-elasticsearch-on-debian-9.jpg\" alt=\"How to install elasticsearch on debian 9\" width=\"258\" height=\"258\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-elasticsearch-on-debian-9.jpg 258w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-elasticsearch-on-debian-9-150x150.jpg 150w\" sizes=\"(max-width: 258px) 100vw, 258px\" \/><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We will install Elasticsearch using the apt package manager from the official Elastic repository. First, enable the repository and update the package cache list with the following commands:<\/p>\n<pre>wget -qO - https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo apt-key add -\r\necho \"deb https:\/\/artifacts.elastic.co\/packages\/6.x\/apt stable main\" | sudo tee -a \/etc\/apt\/sources.list.d\/elastic-6.x.list\r\nsudo apt-get update\r\n<\/pre>\n<p>and install Elasticsearch with apt using the following command:<\/p>\n<pre>sudo apt-get install elasticsearch\r\n<\/pre>\n<p>Once the installation is completed, open the <code>elasticsearch.yml<\/code> file and restrict the remote access to the Elasticsearch instance:<\/p>\n<pre>sudo nano \/etc\/elasticsearch\/elasticsearch.yml<\/pre>\n<pre># ---------------------------------- Network -----------------------------------\r\n#\r\n# Set the bind address to a specific IP (IPv4 or IPv6):\r\n#\r\n#network.host: 192.168.0.1\r\nnetwork.host: localhost\r\n<\/pre>\n<p>Restart the Elasticsearch service and set it to automatically start on boot:<\/p>\n<pre>sudo systemctl restart elasticsearch\r\nsudo systemctl enable elasticsearch\r\n<\/pre>\n<p>To check the status of the elasticsearch server you can use the following command:<\/p>\n<pre>curl -X GET http:\/\/localhost:9200<\/pre>\n<p>The output should look like:<\/p>\n<pre>{\r\n  \"name\" : \"UHR2XBB\",\r\n  \"cluster_name\" : \"elasticsearch\",\r\n  \"cluster_uuid\" : \"Ranc0Jh9QAuuMYhALcZIRA\",\r\n  \"version\" : {\r\n    \"number\" : \"6.2.4\",\r\n    \"build_hash\" : \"ccec39f\",\r\n    \"build_date\" : \"2018-04-12T20:37:28.497551Z\",\r\n    \"build_snapshot\" : false,\r\n    \"lucene_version\" : \"7.2.1\",\r\n    \"minimum_wire_compatibility_version\" : \"5.6.0\",\r\n    \"minimum_index_compatibility_version\" : \"5.0.0\"\r\n  },\r\n  \"tagline\" : \"You Know, for Search\"\r\n}\r\n\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"5-Install-and-configure-Kibana-on-Debian-9\"><\/span>5. Install and configure Kibana\u00a0on Debian 9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h2><img decoding=\"async\" class=\"size-full wp-image-26956 aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-kibana-on-debian-9.jpg\" alt=\"How to install kibana on debian 9\" width=\"258\" height=\"258\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-kibana-on-debian-9.jpg 258w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-kibana-on-debian-9-150x150.jpg 150w\" sizes=\"(max-width: 258px) 100vw, 258px\" \/><\/h2>\n<p>Same as Elasticsearch, we will install the latest version of Kibana using the apt package manager from the official Elastic repository:<\/p>\n<pre>sudo apt-get install kibana<\/pre>\n<p>Once the installation is completed, open the <code>kibana.yml<\/code> file and restrict the remote access to the Kibana instance:<\/p>\n<pre>sudo nano \/etc\/kibana\/kibana.yml<\/pre>\n<pre># Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.\r\n# The default is 'localhost', which usually means remote machines will not be able to connect.\r\n# To allow connections from remote users, set this parameter to a non-loopback address.\r\nserver.host: \"localhost\"<\/pre>\n<pre>Start the Kibana service and set it to start automatically on boot:<\/pre>\n<pre>sudo systemctl restart kibana\r\nsudo systemctl enable kibana<\/pre>\n<p>Kibana will now run on localhost on port 5601<\/p>\n<h2><span class=\"ez-toc-section\" id=\"6-Install-and-configure-Nginx-as-a-reverse-proxy\"><\/span>6. Install and configure Nginx as a reverse proxy<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We will use Nginx as a reverse proxy to access Kibana from the public IP address. To install Nginx, run:<\/p>\n<pre>sudo apt-get install nginx<\/pre>\n<p>Create a basic authentication file with the openssl command:<\/p>\n<pre>echo \"admin:$(openssl passwd -apr1 YourStrongPassword)\" | sudo tee -a \/etc\/nginx\/htpasswd.kibana<\/pre>\n<p>Note: always use a <a href=\"https:\/\/www.rosehosting.com\/blog\/generate-password-linux-command-line\/\">strong password<\/a>.<\/p>\n<p>Delete the default nginx, virtual host:<\/p>\n<pre>sudo rm -f \/etc\/nginx\/sites-enabled\/default<\/pre>\n<p>and create a virtual host configuration file for the Kibana instance:<\/p>\n<pre>sudo nano \/etc\/nginx\/sites-available\/kibana<\/pre>\n<pre>server {\r\n    listen 80 default_server;\r\n    server_name _;\r\n    return 301 https:\/\/$server_name$request_uri;\r\n}\r\n\r\nserver {\r\n    listen 443 default_server ssl http2;\r\n \r\n    server_name _;\r\n \r\n    ssl_certificate \/etc\/ssl\/certs\/ssl-cert-snakeoil.pem;\r\n    ssl_certificate_key \/etc\/ssl\/private\/ssl-cert-snakeoil.key;\r\n    ssl_session_cache shared:SSL:10m;\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}\r\n<\/pre>\n<p>Activate the server block by creating a symbolic link:<\/p>\n<pre>sudo ln -s \/etc\/nginx\/sites-available\/kibana \/etc\/nginx\/sites-enabled\/kibana<\/pre>\n<p>Test the Nginx configuration:<\/p>\n<pre>sudo nginx -t<\/pre>\n<p>Restart the Nginx service and set it to start automatically on boot:<\/p>\n<pre>sudo systemctl restart nginx\r\nsudo systemctl enable nginx<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"7-Install-Logstash-on-Debian-9\"><\/span>7. Install Logstash on Debian 9<img decoding=\"async\" class=\"size-full wp-image-26958 aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-logstash-on-debian-9.jpg\" alt=\"How to install logstash on debian 9\" width=\"258\" height=\"258\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-logstash-on-debian-9.jpg 258w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-logstash-on-debian-9-150x150.jpg 150w\" sizes=\"(max-width: 258px) 100vw, 258px\" \/><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The final step is to install Logstash using the apt package manager from the official Elastic repository.<\/p>\n<pre>sudo apt-get install logstash<\/pre>\n<p>Once the Logstash package is installed start the Logstash service and set it to start automatically on boot:<\/p>\n<pre>sudo systemctl restart logstash\r\nsudo systemctl enable logstash<\/pre>\n<p>The Logstash configuration depends on your personal preferences and the plugins you will use. Find more information about <a href=\"https:\/\/www.elastic.co\/guide\/en\/logstash\/current\/configuration.html\">how to configure Logstash<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"8-Access-Kibana\"><\/span>8. Access Kibana<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can now access the kibana interface by opening your browser and typing <code>https:\/\/YourServerIpAddress<\/code><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-26961\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/install-elk-stack-on-debian-9.jpg\" alt=\"install elk stack on debian 9\" width=\"742\" height=\"382\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/install-elk-stack-on-debian-9.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/install-elk-stack-on-debian-9-150x77.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/install-elk-stack-on-debian-9-300x154.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\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>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-26962\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/installing-elk-stack-on-debian-9.jpg\" alt=\"installing elk stack on debian 9\" width=\"200\" height=\"200\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/installing-elk-stack-on-debian-9.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/installing-elk-stack-on-debian-9-150x150.jpg 150w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/>That\u2019s it. You have successfully installed the ELK Stack on your Debian 9 VPS.<\/p>\n<p>Of course, you don\u2019t have to\u00a0Install and Configure the ELK Stack on Debian 9, 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&#215;7 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. 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>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install\u00a0 ELK Stack on Debian 9. ELK stack is a collection &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install ELK Stack on Debian 9\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/#more-26939\" aria-label=\"Read more about How to Install ELK Stack on Debian 9\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":26963,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700],"tags":[48,1120,1568,1570,1569],"class_list":["post-26939","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-debian","tag-elasticsearch","tag-elk-stack","tag-kibana","tag-logstash","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 ELK Stack on Debian 9 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install ELK Stack on Debian 9 | 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-debian-9\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install ELK Stack on Debian 9\" \/>\n<meta property=\"og:description\" content=\"How to Install ELK Stack on Debian 9 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/\" \/>\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-05-28T08:17:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-30T11:16:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-ELK-stack-on-Debian-9.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-debian-9\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install ELK Stack on Debian 9\",\"datePublished\":\"2018-05-28T08:17:54+00:00\",\"dateModified\":\"2022-12-30T11:16:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/\"},\"wordCount\":664,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Install-ELK-stack-on-Debian-9.jpg\",\"keywords\":[\"debian\",\"elasticsearch\",\"ELK Stack\",\"kibana\",\"logstash\"],\"articleSection\":[\"Debian\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/\",\"name\":\"How to Install ELK Stack on Debian 9 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Install-ELK-stack-on-Debian-9.jpg\",\"datePublished\":\"2018-05-28T08:17:54+00:00\",\"dateModified\":\"2022-12-30T11:16:13+00:00\",\"description\":\"How to Install ELK Stack on Debian 9 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Install-ELK-stack-on-Debian-9.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Install-ELK-stack-on-Debian-9.jpg\",\"width\":742,\"height\":371,\"caption\":\"How to Install ELK stack on Debian 9\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-the-elk-stack-on-debian-9\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install ELK Stack on Debian 9\"}]},{\"@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 ELK Stack on Debian 9 | RoseHosting","description":"How to Install ELK Stack on Debian 9 | 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-debian-9\/","og_locale":"en_US","og_type":"article","og_title":"How to Install ELK Stack on Debian 9","og_description":"How to Install ELK Stack on Debian 9 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-05-28T08:17:54+00:00","article_modified_time":"2022-12-30T11:16:13+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-ELK-stack-on-Debian-9.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-debian-9\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install ELK Stack on Debian 9","datePublished":"2018-05-28T08:17:54+00:00","dateModified":"2022-12-30T11:16:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/"},"wordCount":664,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-ELK-stack-on-Debian-9.jpg","keywords":["debian","elasticsearch","ELK Stack","kibana","logstash"],"articleSection":["Debian"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/","name":"How to Install ELK Stack on Debian 9 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-ELK-stack-on-Debian-9.jpg","datePublished":"2018-05-28T08:17:54+00:00","dateModified":"2022-12-30T11:16:13+00:00","description":"How to Install ELK Stack on Debian 9 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-ELK-stack-on-Debian-9.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-ELK-stack-on-Debian-9.jpg","width":742,"height":371,"caption":"How to Install ELK stack on Debian 9"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-the-elk-stack-on-debian-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install ELK Stack on Debian 9"}]},{"@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\/26939","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=26939"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26939\/revisions"}],"predecessor-version":[{"id":44613,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26939\/revisions\/44613"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/26963"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=26939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=26939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=26939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}