Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
      • Pod
    • Helm Chart
    • OAuth2 Proxy
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Argo Events
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • DevSecOps
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
      • Azure Cloud
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log, Monitor & Tracing
    • DataDog
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
    • NextCloud
  • Toggle search form

[Kibana-ELK] Installing and Seting a Kibana For ELK

Posted on January 17, 2022October 6, 2023 By nim No Comments on [Kibana-ELK] Installing and Seting a Kibana For ELK

Kibana là gì?

Bạn có thể hiểu đơn giản Kibana là 1 trang web tương tác với elastic. Từ những data có trên elastic bạn có thể dùng kibana vẽ lên chart (đẹp mắt) để giám sác hay phân tích 1 sever nào đó: VM, container, application, Kubernetes,…

Về cách cài đặt thì có cách.
+ Docker
+ Command: package manager.

Link này chỉ bạn
https://www.elastic.co/downloads/kibana

Contents

Toggle
  • 1) Install kibana
    • 1.1) Kibana Docker
  • 2) Configuration missing.

1) Install kibana

1.1) Kibana Docker

reference Link:
https://www.elastic.co/guide/en/kibana/current/docker.html
https://github.com/deviantony/docker-elk

Đầu tiên cần cài docker lên ubuntu.

sudo apt update -y
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update -y
apt-cache policy docker-ce
sudo apt install docker-ce -y
sudo systemctl enable docker
sudo systemctl restart docker
sudo curl -SL https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Giờ cần kiểm tra version elastic
curl -XGET 'localhost:9200'

Các bạn nhớ để ý những chỗ mình gán version:
+ Dockerfile
+ docker-compose

Giờ chúng ta sẽ chuẩn bị 1 file config cho kiali

root@elastic1-u20:~# mkdir docker
root@elastic1-u20:~# cd docker/
root@elastic1-u20:~/docker# mkdir kibana
root@elastic1-u20:~/docker# cd kibana/
root@elastic1-u20:~/docker/kibana# mkdir config
root@elastic1-u20:~/docker/kibana# vi Dockerfile
###Dockerfile
ARG ELK_VERSION
  
# https://www.docker.elastic.co/
FROM docker.elastic.co/kibana/kibana:${ELK_VERSION}

# Add your kibana plugins setup here
# Example: RUN kibana-plugin install <name|url>

root@elastic1-u20:~/docker/kibana# cd config/
root@elastic1-u20:~/docker/kibana/config# vi kibana.yml
---
## Default Kibana configuration from Kibana base image.
## https://github.com/elastic/kibana/blob/master/src/dev/build/tasks/os_packages/docker_generator/templates/kibana_yml.template.ts
#
server.name: kibana
server.host: 0.0.0.0
elasticsearch.hosts: [ "http://<IP-Elasic>:9200" ]
monitoring.ui.container.elasticsearch.enabled: true

## X-Pack security credentials
#
#elasticsearch.username: elastic
#elasticsearch.password: changeme
Ở đây vì mình ko config authen trên elastic nên mình command # lại nhé.

chúng ta tạo file docker-compose.yml cùng cấp folder .kibana nhé.

##docker-compose.yml 
version: '3.2'
services:
  kibana:
    build:
      context: kibana/
      args:
        ELK_VERSION: 7.16.3
    volumes:
      - ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro,z
    ports:
      - "5601:5601"

Gõ docker-compose up -d

Khi thấy thông báo ok thì login vào web thử và kiểm tra

thực hiện vào dev tools

GET _cat/indices

KHi thấy có 1 số indices của kibana là Kibana đã kết nối thành công elastic.

2) Configuration missing.

Bạn thêm vào file kibana.yaml
và phần cuối cửa nó không có “/” nhé

server.publicBaseUrl: "https://logs.nimtechnology.com"
ELK, Kibana, Log, Monitor & Tracing

Post navigation

Previous Post: [Elastic] Install Elasticsearch through package manager.
Next Post: [helm chart] How to use “range” in helm chart – Kubernetes

More Related Articles

[Coralogix] Filter or Custom log when using Coralogix. Log, Monitor & Tracing
[Grafana] Bar Gause – Vẽ chart Grafana kiểu sóng âm nhạc Grafana
[Golang] Define mapping when creating an index on Elasticsearch by Golang. ELK
[error] Lỗi failed to parse field [host] of type [text] in document with id trên elk ELK
[Elasticsearch] reason=Validation Failed: 1: this action would add [10] total shards, but this cluster currently has [1000]/[1000] maximum shards open;]]] ELK
[Kibana] Tutorial export and import much data(dashboard,…) in Kibana – ELK ELK

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • [Argo Workflow] Create an access token for Argo Workflows July 14, 2025
  • [Argo Workflow] SSO Authentication for Argo Workflows. July 14, 2025
  • [AWS/EKS] Cache Docker image to accelerate EKS container deployment. July 10, 2025
  • [Laravel] Laravel Helpful June 26, 2025
  • [VScode] Hướng dẫn điều chỉnh font cho terminal June 20, 2025

Archives

  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
    • NextCloud
  • CI/CD
    • Argo Events
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • DevSecOps
    • Golang
    • Jquery & JavaScript
    • Laravel
    • NextJS 14 & ReactJS & Type Script
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • Azure Cloud
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Ingress
      • Pod
    • Longhorn – Storage
    • MetalLB
    • OAuth2 Proxy
    • Vault
    • VictoriaMetrics
  • Log, Monitor & Tracing
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Fluent
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2025 NimTechnology.