ElasticSearch , Kibana are deployed as Docker containers.
- Docker.
Refer: https://www.elastic.co/guide/en/kibana/current/docker.html
- Run
docker network create elastic
to create docker network. This is one time setup step. - Run
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.17.0
to pull elastic search docker image. - Run
docker run --name es01-test --net elastic -p 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.17.0
to run elastic search docker continer in single node mode. If container with same name already exists , Rundocker rm es01-test
first. - If container succesfully starts , you should be able to access http://localhost:9200/
- Run
docker pull docker.elastic.co/kibana/kibana:7.17.0
to pull kibana docker image. - Run
docker run --name kib01-test --net elastic -p 127.0.0.1:5601:5601 -e "ELASTICSEARCH_HOSTS=http://es01-test:9200" docker.elastic.co/kibana/kibana:7.17.0
to run kibana docker container. If container with same name already exists , Rundocker rm kib01-test
first. - If container succesfully starts , you should be able to access http://localhost:5601/
- Refer netflix_titles.csv. Source : https://www.kaggle.com/shivamb/netflix-shows.
- Navigate to Kibana Dashboard Home page
- Choose Upload a file option link to upload netflix_titles.csv file and Import the data as Index 'netflix'.
- Navigate to Kibana dashboard DevTools page.
- Also explore nyc-restaurants.csv.
This dataset is used in below hands on examples. Please import this data also as
nyc-restaurants
index. - After importing above datasets , open Elastic Search Discover and select index you want to discover.
Right side of Search box , you can choose
Syntax options
betweenKQL
andLucene
for search. - Refer BasicQueries and try in Kibana dashboard DevTools.
- Refer AggregationQueries for Aggregation queries.
- Refer GeoQueries for Geo Queries.
- Refer Analyzers
- Refer Routing. for Routing.
- Refer OtherAPIs.
- Refer DataStreams.
- Refer Correcting typo/spelling mistakes with Fuzzy.
- Refer Did you mean options