Code Monkey home page Code Monkey logo

Comments (5)

sherifabdlnaby avatar sherifabdlnaby commented on May 30, 2024 1

@pni-mft elastdocker doesn't support >= v8.* yet. I have it in the plan but I haven't had the time. With 8.0 just released I might work on this very soon!

from elastdocker.

sherifabdlnaby avatar sherifabdlnaby commented on May 30, 2024 1

I am almost done with upgrading Elastdocker template to start an >8.0 Cluster 🙌🏻.

from elastdocker.

ScottFred avatar ScottFred commented on May 30, 2024

@sherifabdlnaby This is a great repo! Thanks for your efforts. It might be good to modify your README.md to clarify that the repo only works with ELK_VERSION<8.

from elastdocker.

brandonros avatar brandonros commented on May 30, 2024

for what it's worth, I skipped logstash and did this:

# one time setup
sudo sysctl -w vm.max_map_count=262144 # Linux only? Not needed on Mac?
docker pull docker.elastic.co/elasticsearch/elasticsearch:8.0.1
docker pull docker.elastic.co/kibana/kibana:8.0.1
docker network create elastic
# begin elasticsearch + kibana setup
docker run \
  --name es01 \
  --net elastic \
  -p 127.0.0.1:9200:9200 \
  -it \
  docker.elastic.co/elasticsearch/elasticsearch:8.0.1
# Wait for elastic user password output as well as Kibana enrollment token output
# Leave running, open next step in 2nd terminal
docker run \
  --name kibana \
  --net elastic \
  -p 127.0.0.1:5601:5601 \
  -it \
  docker.elastic.co/kibana/kibana:8.0.1
# Take note of Kibana verification code in terminal output
# Load http://127.0.0.1:5601 in web browser, it'll ask for Elasticsearch enrollment token and Kibana verification code
# Log in with username: elastic password: from previous step on terminal output
# copy config + certs + data out of docker containers to local machine
docker cp kibana:/usr/share/kibana/config kibana-config
docker cp kibana:/usr/share/kibana/data kibana-data
docker cp es01:/usr/share/elasticsearch/data es01-data
docker cp es01:/usr/share/elasticsearch/config es01-config
# Kill Kibana, kill Elasticsearch with Ctrl+C
# remove old instances
docker rm es01
docker rm kibana
# stand up new instances that are configured with persistent certs, etc.
docker run \
  --name es01 \
  --net elastic \
  -p 127.0.0.1:9200:9200 \
  --mount type=bind,source="$(pwd)"/es01-data,target=/usr/share/elasticsearch/data \
  --mount type=bind,source="$(pwd)"/es01-config,target=/usr/share/elasticsearch/config \
  -it \
  docker.elastic.co/elasticsearch/elasticsearch:8.0.1
docker run \
  --name kibana \
  --net elastic \
  -p 127.0.0.1:5601:5601 \
  --mount type=bind,source="$(pwd)"/kibana-data,target=/usr/share/kibana/data \
  --mount type=bind,source="$(pwd)"/kibana-config,target=/usr/share/kibana/config \
  --mount type=bind,source="$(pwd)"/es01-config/certs,target=/usr/share/kibana/config/certs \
  -it \
  docker.elastic.co/kibana/kibana:8.0.1

Voila. Persistent "ELK" stack (without the L)

from elastdocker.

pni-mft avatar pni-mft commented on May 30, 2024

Aweseome!

from elastdocker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.