50% off 所有套餐限时优惠,起价 $2.48/mo
ELK Stack

ELK Stack

ELK Stack 是 Elasticsearch + Logstash + Kibana 的经典日志三件套。通过 Logstash 从任意来源采集数据,在 Elasticsearch 中完成索引,再用 Kibana 构建可视化看板。Walmart、Verizon 和 Cisco 均采用这套日志聚合方案实现集中化可观测性。

Version

Latest

Operating System

Ubuntu Server 24.04 LTS

Min. RAM

8 GB

IP Types

IPV4,IPV6

Services

  • Elasticsearch(搜索引擎与存储)
  • Kibana(可视化 Web 界面)
  • Logstash(数据处理管道)

Accessing Services

  • Kibana Web UI: http://<server-ip>:5601
  • Elasticsearch API: http://<server-ip>:9200
  • Elasticsearch 集群内部通信: 127.0.0.1:9300

Credentials

  • Username: elastic
  • Password: stored in /root/.cloudzy-creds

Important Directories

  • Config: /etc/{service}/
  • Data: /var/lib/{service}/
  • Logs: /var/log/{service}/
  • Binaries: /usr/share/{service}/bin/
  • 插件(Elasticsearch 和 Kibana): /usr/share/{elasticsearch|kibana}/plugins/

Service Management

systemctl status <service>    # Check status
systemctl restart <service>   # Restart
systemctl stop <service>      # Stop
systemctl start <service>     # Start

Replace <service> with elasticsearch, kibana, or logstash.

System Users

  • elasticsearch - 运行 Elasticsearch 服务
  • kibana - 运行 Kibana 服务
  • logstash - 运行 Logstash 服务

Logstash 管道使用说明

以 logstash 用户身份运行管道,不要使用 root:

sudo -u logstash /usr/share/logstash/bin/logstash -e input { stdin { } } output { stdout { } }

More in Monitoring

Related apps.

立即部署 ELK Stack。 From $2.48/mo.