Editing Install Elasticsearch and Kibana on Debian/Ubuntu

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
  
 
  sudo [[apt-get install apt-transport-https]]
 
  sudo [[apt-get install apt-transport-https]]
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o [[/usr/share/keyrings/]]elasticsearch-keyring.gpg
+
  echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
 
[[sudo apt-get update]] && sudo [[apt-get install elasticsearch]]
 
 
 
 
 
 
 
For older Elastic 7 version use:
 
  echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee [[/etc/apt/sources.list.d/]]elastic-7.x.list
 
  
 
== Elasticsearch ==  
 
== Elasticsearch ==  
  sudo [[apt-get update]] && sudo [[apt-get install elasticsearch]]
+
  sudo apt-get update && sudo apt-get install elasticsearch
  
  sudo /bin/[[systemctl daemon-reload]]
+
  sudo /bin/systemctl daemon-reload
  sudo /bin/[[systemctl enable elasticsearch.service]]
+
  sudo /bin/systemctl enable elasticsearch.service
  
  sudo [[systemctl start elasticsearch.service]]
+
  sudo [[systemctl start]] elasticsearch.service
 
  sudo systemctl status elasticsearch.service
 
  sudo systemctl status elasticsearch.service
 +
  
 
== Kibana ==
 
== Kibana ==
<code>sudo apt-get install [[kibana]]</code>
+
sudo apt-get install [[kibana]]
  
<code>sudo /bin/[[systemctl daemon-reload]]</code>
+
sudo /bin/systemctl daemon-reload
 +
sudo /bin/systemctl enable kibana.service
  
<code>sudo /bin/[[systemctl enable kibana.service]]</code>
+
sudo systemctl start kibana.service
 
+
sudo systemctl status kibana.service
<code>sudo [[systemctl start kibana.service]]</code>
 
 
 
<code>sudo [[systemctl status kibana.service]]</code>
 
 
 
Access with user: <code>[[elastic]]</code> pass: you will find it on installation output
 
 
 
 
 
Connect Kibana to [[Elasticsearch]]:
 
[[/usr/share/kibana/bin/kibana-verification-code]]
 
  
 
== Errors ==
 
== Errors ==
Line 42: Line 28:
 
  N: See [[apt-secure]](8) manpage for repository creation and user configuration details.
 
  N: See [[apt-secure]](8) manpage for repository creation and user configuration details.
  
 
W: [[GPG error]]: https://artifacts.elastic.co/packages/7.x/apt stable InRelease: The following signatures couldn't be verified because the [[public key is not available]]: [[NO_PUBKEY]] D27D666CD88E42B4
 
 
Solution:
 
sudo [[apt-key adv --keyserver]] hkp://keyserver.ubuntu.com:80 --recv-keys  D27D666CD88E42B4
 
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
 
Executing: /tmp/apt-key-gpghome.nxEak71UaN/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys
 
D27D666CD88E42B4
 
gpg: key D27D666CD88E42B4: public key "Elasticsearch (Elasticsearch Signing Key) <[email protected]>"
 
imported
 
gpg: Total number processed: 1
 
gpg:              imported: 1
 
  
 
== Related terms ==
 
== Related terms ==
Line 59: Line 33:
 
* <code>deb [trusted=yes]</code>
 
* <code>deb [trusted=yes]</code>
 
* <code>[[metricbeat setup --dashboards]]</code>
 
* <code>[[metricbeat setup --dashboards]]</code>
* [[Grafana installation]]
+
* [[brew install elastic/tap/elasticsearch-full]]
* <code>[[this elastic installation has strict security requirements]]</code>
 
  
 
== See also ==
 
== See also ==
* {{apt-key}}
 
 
* {{ELK}}
 
* {{ELK}}
  
  
 
[[Category:ELK]]
 
[[Category:ELK]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: