服务日志收集方案开发环境搭建

本文详细介绍在Ubuntu16.04虚拟机上安装配置Elasticsearch 6.5.1、Kibana 6.5.1及Filebeat 6.5.1的过程。涵盖下载、安装、配置、启动及验证步骤,并提供Kibana界面汉化教程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在ubuntu 16.04虚拟机上安装Elasticsearch,Kibana,Filebeat.版本:6.5.1
Elasticsearch默认是开发模式.只能在本机访问.
Kibana可外部访问.汉化Kibana界面.
Filebeat直接输出到Elasticsearch.

以下说明各组件的安装配置.

  • Elasticsearch

需要以非root用户安装.

下载,安装:

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.1.deb
sudo dpkg -i elasticsearch-6.5.1.deb

安装目录:/usr/share/elasticsearch
配置文件: /etc/elasticsearch/elasticsearch.yml

启动:

sudo service elasticsearch start

停止,重启分别用stop,restart。

验证:

curl -XGET "http://localhost:9200"
  • Kibana

下载,安装:

wget https://artifacts.elastic.co/downloads/kibana/kibana-6.5.1-amd64.deb
sudo dpkg -i kibana-6.5.1-amd64.deb

安装目录:/usr/share/kibana

配置文件:/etc/kibana/kibana.yml

配置::

#修改server.host非loopback IP
server.host: "192.168.21.190"
#elasticsearch服务url
elasticsearch.url: "http://localhost:9200"

启动:

。服务方式:

sudo service kibana start

停止,重启分别用stop,restart。

验证:

浏览器中打开: http://192.168.21.190:5601

 

。直接启动:

cd /etc/kibana/bin
sudo ./kibana 

Kibana界面汉化

https://blog.csdn.net/qq_28449663/article/details/79868334

该汉化包默认支持kibana5.x - 6.x任意版本

下载汉化包路径:https://github.com/anbai-inc/Kibana_Hanization/archive/master.zip

在解压路径下执行

sudo python main.py /usr/share/kibana

其中,/usr/share/kibana为Kibana目录

 

  • Filebeat

下载,安装:

wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.5.1-amd64.deb

sudo dpkg -i filebeat-6.5.1-amd64.deb

安装目录:/etc/filebeat

配置文件:/etc/filebeat/filebeat.yml

配置:

#直接输出到elasticsearch
output.elasticsearch:
  hosts: ["localhost:9200"]

 启动:

sudo service fileberat start

停止,重启分别用stop,restart。
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值