Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jmichaels/1a2e9af79ed27f28e16246495f668cbd to your computer and use it in GitHub Desktop.
Save jmichaels/1a2e9af79ed27f28e16246495f668cbd to your computer and use it in GitHub Desktop.

MacOS - Running Locally (Easy Mode)

https://www.elastic.co/guide/en/kibana/current/brew.html https://www.elastic.co/guide/en/elasticsearch/reference/current/brew.html

brew tap elastic/tap
brew install elastic/tap/elasticsearch-full
brew install elastic/tap/kibana-full

brew services start elastic/tap/elasticsearch-full
brew services start elastic/tap/kibana-full

Ubuntu - Running Locally OR On Remote Server

sudo apt-get install apt-transport-https
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo add-apt-repository "deb https://artifacts.elastic.co/packages/7.x/apt stable main"
sudo apt-get update
sudo apt-get install elasticsearch

# Edit the Elasticsearch config file
sudo vim /etc/elasticsearch/elasticsearch.yml

# Set the following values
# Replace the IP address with your servers 
# If running on a remote host, use that host's IP

  network.host: 165.227.182.118 # Or 0.0.0.0 if running locally
  cluster.name: myCluster1
  node.name: "myNode1"
  cluster.initial_master_nodes: ["myNode1"]

# Enable and start ES:
sudo /bin/systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service

# To stop it:
sudo systemctl stop elasticsearch.service

# Test it:
curl -X GET "http://localhost:9200/?pretty"

# Now install Kibana
sudo apt-get install kibana

# Edit Kibana config
  vim /etc/kibana/kibana.yml
  server.host: "165.227.182.118"  # Or "localhost" if running locally
  elasticsearch.hosts: ["http://165.227.182.118:9200"]
  server.name: "165.227.182.118" # Or "localhost" if running locally

# Start Kibana
sudo /bin/systemctl enable kibana.service
sudo systemctl start kibana.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment