{"id":22600,"date":"2017-06-20T09:32:01","date_gmt":"2017-06-20T14:32:01","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=22600"},"modified":"2022-12-30T05:32:03","modified_gmt":"2022-12-30T11:32:03","slug":"install-and-configure-the-elk-stack-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/","title":{"rendered":"How to Install ELK Stack on Ubuntu 16.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"742\" height=\"371\" class=\"wp-image-28524\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.jpg\" alt=\"How to Install ELK Stack on Ubuntu 16.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-ELK-Stack-on-Ubuntu-16.04-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-ELK-Stack-on-Ubuntu-16.04-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignright\"><img decoding=\"async\" width=\"180\" height=\"100\" class=\"wp-image-28526\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/installing-elk-stack-on-ubuntu-16.04.jpg\" alt=\"installing elk stack on ubuntu 16.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/installing-elk-stack-on-ubuntu-16.04.jpg 180w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/installing-elk-stack-on-ubuntu-16.04-150x83.jpg 150w\" sizes=\"(max-width: 180px) 100vw, 180px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Today we will cover a tutorial on how to install and configure the ELK Stack on Ubuntu 16.04. ELK stands for Elasticsearch, Logstash, and Kibana and is a robust open source 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 engine based on Lucene, Logstash is a data processing pipeline for managing events and logs and Kibana is a web application for visualizing data in Elasticsearch. This ELK Stack tutorial should work on other Linux VPS systems as well but it\u00a0was tested and written for an <a title=\"Ubuntu VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" rel=\"noopener\">Ubuntu 16.04 VPS<\/a>. <strong>Installing\u00a0ELK Stack on Ubuntu 16.04<\/strong> is an easy task, just follow the steps below, and you should have it installed in less than 15 minutes.<\/p>\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 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-6a251cf36262d\" 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-6a251cf36262d\"  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\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#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\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#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\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#3-Install-Oracle-Java-JDK-via-PPA\" >3. Install Oracle Java JDK via PPA<\/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\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#4-Install-and-configure-Elasticsearch\" >4. Install and configure Elasticsearch<\/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\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#5-Install-and-configure-Kibana\" >5. Install and configure Kibana<\/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\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#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\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#7-Install-Logstash\" >7. Install Logstash<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-1-requirements\"><span class=\"ez-toc-section\" id=\"1-Requirements\"><\/span>1. Requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">For this tutorial to work, there are a couple of requirements:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>An <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">Ubuntu 16.04 VPS<\/a><\/li>\r\n<li>A user with sudo privileges<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">If you get a VPS from us, we&#8217;ll do all of this for you for free.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-2-update-the-system-and-install-necessary-packages\"><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>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt update &amp;&amp; apt -y upgrade\r\nsudo apt install apt-transport-https software-properties-common wget\r\n<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Make sure to always <a href=\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\">update the software on your Linux VPS<\/a> or <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enable-automatic-updates-on-a-linux-vps\/\">set up automatic updates<\/a>.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-3-install-oracle-java-jdk-via-ppa\"><span class=\"ez-toc-section\" id=\"3-Install-Oracle-Java-JDK-via-PPA\"><\/span>3. Install Oracle Java JDK via PPA<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">We will use the PPA repository maintained by the Webupd8 Team. The install script will ask you to accept the license agreement and it will download the Java archive file from the Oracle download page and set everything up for you.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">To add the Webupd8 Team PPA repository, run the following commands on your server:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo add-apt-repository ppa:webupd8team\/java\r\nsudo apt update<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You can now install JDK8 with the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt install oracle-java8-installer<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">To check if everything is set correctly, run:<\/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 class=\"wp-block-paragraph\">and you should see something like the following:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">java version \"1.8.0_131\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_131-b11)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-4-install-and-configure-elasticsearch\"><span class=\"ez-toc-section\" id=\"4-Install-and-configure-Elasticsearch\"><\/span>4. Install and configure Elasticsearch<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">We will <a href=\"https:\/\/www.rosehosting.com\/blog\/install-elasticsearch-on-ubuntu-14-04\/\">install Elasticsearch<\/a> using the package manager from the Elastic repository.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">wget -qO - https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo apt-key add -\r\necho \"deb https:\/\/artifacts.elastic.co\/packages\/5.x\/apt stable main\" | sudo tee -a \/etc\/apt\/sources.list.d\/elastic-5.x.list\r\nsudo apt update\r\nsudo apt install elasticsearch\r\n<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Once the installation is completed, open the <code>elasticsearch.yml<\/code> file and restrict the remote access to the Elasticsearch instance:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo nano \/etc\/elasticsearch\/elasticsearch.yml<\/pre>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">network.host: localhost<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Start the Elasticsearch service and set it to automatically start on boot:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo systemctl restart elasticsearch\r\nsudo systemctl enable elasticsearch\r\n<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-5-install-and-configure-kibana\"><span class=\"ez-toc-section\" id=\"5-Install-and-configure-Kibana\"><\/span>5. Install and configure Kibana<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Same as Elasticsearch, we will install Kibana using the package manager from the Elastic repository.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt install kibana<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Once the installation is completed, open the <code>kibana.yml<\/code> file and restrict the remote access to the Kibana instance:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo nano \/etc\/kibana\/kibana.yml\r\nserver.host: \"localhost\"<\/pre>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">Start the Elasticsearch service and set it to start automatically on boot:<\/pre>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo systemctl restart kibana\r\nsudo systemctl enable kibana<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Kibana will now run on localhost on port 5601<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-6-install-and-configure-nginx-as-a-reverse-proxy\"><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>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">We will use Nginx as a reverse proxy to access Kibana from the public IP address. To install Nginx, run:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt-get install nginx<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Create a basic authentication file with the OpenSSL command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">echo \"admin:$(openssl passwd -apr1 YourStrongPassword)\" | sudo tee -a \/etc\/nginx\/htpasswd.kibana<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Note: always use a <a href=\"https:\/\/www.rosehosting.com\/blog\/generate-password-linux-command-line\/\">strong password<\/a>.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Generate a self-signed SSL certificate:<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Delete the default nginx virtual host:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo rm \/etc\/nginx\/sites-enabled\/default<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">and create a virtual host configuration file for our Kibana instance:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo nano \/etc\/nginx\/sites-available\/kibana<\/pre>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">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>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Activate the server block by creating a symbolic link:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo ln -s \/etc\/nginx\/sites-available\/kibana \/etc\/nginx\/sites-enabled\/kibana<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Test the Nginx configuration and restart nginx:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo nginx -t\r\nsudo service nginx restart<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-7-install-logstash\"><span class=\"ez-toc-section\" id=\"7-Install-Logstash\"><\/span>7. Install Logstash<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The final step is to install Logstash using the package manager from the Elastic repository.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt install logstash<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/www.elastic.co\/guide\/en\/logstash\/current\/configuration.html\">Logstash configuration<\/a> depends on your personal preferences and the plugins you will use.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">That\u2019s it. You have <strong>successfully installed the ELK Stack on your Ubuntu 16.04<\/strong> VPS.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">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<hr class=\"wp-block-separator\" \/>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignleft\"><img decoding=\"async\" width=\"300\" height=\"103\" class=\"wp-image-24439\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/install-elk-stack-on-ubuntu-300x103.jpg\" alt=\"install-elk-stack-on-ubuntu\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/install-elk-stack-on-ubuntu-300x103.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/install-elk-stack-on-ubuntu-150x51.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/install-elk-stack-on-ubuntu-200x69.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/install-elk-stack-on-ubuntu-50x17.jpg 50w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/install-elk-stack-on-ubuntu.jpg 350w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Of course, you don\u2019t have to\u00a0Install and Configure the ELK Stack on Ubuntu 16.04, if you use one of our <a title=\"linux vps hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" rel=\"noopener\">Managed 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>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><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>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">\u00a0<\/pre>\r\n","protected":false},"excerpt":{"rendered":"<p>Today we will cover a tutorial on how to install and configure the ELK Stack on Ubuntu 16.04. ELK stands &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install ELK Stack on Ubuntu 16.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#more-22600\" aria-label=\"Read more about How to Install ELK Stack on Ubuntu 16.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":28524,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1698],"tags":[1120,1568,1570,1569,59],"class_list":["post-22600","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-elasticsearch","tag-elk-stack","tag-kibana","tag-logstash","tag-ubuntu","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.7 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install ELK Stack on Ubuntu 16.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install ELK Stack on Ubuntu 16.04 | 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\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/\" \/>\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 Ubuntu 16.04\" \/>\n<meta property=\"og:description\" content=\"How to Install ELK Stack on Ubuntu 16.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/\" \/>\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=\"2017-06-20T14:32:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-30T11:32:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install ELK Stack on Ubuntu 16.04\",\"datePublished\":\"2017-06-20T14:32:01+00:00\",\"dateModified\":\"2022-12-30T11:32:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/\"},\"wordCount\":582,\"commentCount\":13,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.jpg\",\"keywords\":[\"elasticsearch\",\"ELK Stack\",\"kibana\",\"logstash\",\"ubuntu\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/\",\"name\":\"How to Install ELK Stack on Ubuntu 16.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.jpg\",\"datePublished\":\"2017-06-20T14:32:01+00:00\",\"dateModified\":\"2022-12-30T11:32:03+00:00\",\"description\":\"How to Install ELK Stack on Ubuntu 16.04 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.jpg\",\"width\":742,\"height\":371,\"caption\":\"How to Install ELK Stack on Ubuntu 16.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-and-configure-the-elk-stack-on-ubuntu-16-04\\\/#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 Ubuntu 16.04\"}]},{\"@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 Ubuntu 16.04 | RoseHosting","description":"How to Install ELK Stack on Ubuntu 16.04 | 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\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install ELK Stack on Ubuntu 16.04","og_description":"How to Install ELK Stack on Ubuntu 16.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2017-06-20T14:32:01+00:00","article_modified_time":"2022-12-30T11:32:03+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install ELK Stack on Ubuntu 16.04","datePublished":"2017-06-20T14:32:01+00:00","dateModified":"2022-12-30T11:32:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/"},"wordCount":582,"commentCount":13,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.jpg","keywords":["elasticsearch","ELK Stack","kibana","logstash","ubuntu"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/","url":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/","name":"How to Install ELK Stack on Ubuntu 16.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.jpg","datePublished":"2017-06-20T14:32:01+00:00","dateModified":"2022-12-30T11:32:03+00:00","description":"How to Install ELK Stack on Ubuntu 16.04 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/06\/How-to-Install-ELK-Stack-on-Ubuntu-16.04.jpg","width":742,"height":371,"caption":"How to Install ELK Stack on Ubuntu 16.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-the-elk-stack-on-ubuntu-16-04\/#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 Ubuntu 16.04"}]},{"@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\/22600","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=22600"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/22600\/revisions"}],"predecessor-version":[{"id":44614,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/22600\/revisions\/44614"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/28524"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=22600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=22600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=22600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}