立即注册  找回密码
 立即注册
CeraNetworksBGVM服务器主机交流会员请立即修改密码Sharktech防护
查看: 130|回复: 0

Kibana的搭建与配置

[复制链接]

Kibana的搭建与配置

[复制链接]

81

主题

8

回帖

711

积分

高级会员

积分
711
土小帽

81

主题

8

回帖

711

积分

高级会员

积分
711
2023-11-3 22:06:42 | 显示全部楼层 |阅读模式
Kibana是一个开源的分析与可视化平台,设计出来用于和Elasticsearch一起使用的。你可以用kibana搜索、查看、交互存放在Elasticsearch索引里的数据,使用各种不同的图表、表格、地图等kibana能够很轻易地展示高级数据分析与可视化。

注意:kibana和Elasticsearch的版本要一致,否则会有问题

下载与解压
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.6.1-linux-x86_64.tar.gz  
tar -xvf kibana-6.6.1-linux-x86_64.tar.gz  
mv kibana-6.6.1-linux-x86_64 /usr/local/kibana  
修改配置文件
/usr/local/kibana/config/kibana.yml

# Kibana is served by a back end server. This setting specifies the port to use.  
server.port: 5601 #监听端口  
# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.  
# The default is 'localhost', which usually means remote machines will not be able to connect.  
# To allow connections from remote users, set this parameter to a non-loopback address.  
server.host: "0.0.0.0" #服务ip  
# Enables you to specify a path to mount Kibana at if you are running behind a proxy. This only affects  
# the URLs generated by Kibana, your proxy is expected to remove the basePath value before forwarding requests  
# to Kibana. This setting cannot end in a slash.  
#server.basePath: ""  
# The maximum payload size in bytes for incoming server requests.  
#server.maxPayloadBytes: 1048576  
# The Kibana server's name.  This is used for display purposes.  
#server.name: "your-hostname"  
# The URL of the Elasticsearch instance to use for all your queries.  
elasticsearch.url: "http://10.1.1.1:9200" #elasticsearch集群中其中IP  
# When this setting's value is true Kibana uses the hostname specified in the server.host  
# setting. When the value of this setting is false, Kibana uses the hostname of the host  
# that connects to this Kibana instance.  
elasticsearch.preserveHost: true  
# Kibana uses an index in Elasticsearch to store saved searches, visualizations and  
# dashboards. Kibana creates a new index if the index doesn't already exist.  
kibana.index: ".kibana"  
# The default application to load.  
kibana.defaultAppId: "discover"  
......  
启动脚本
保存文件/lib/systemd/system/kibana.service

[Unit]  
Description=Kibana  
After=network.target  
  
[Service]  
ExecStart=/workspace/kibana/bin/kibana  
Type=simple  
PIDFile=/var/run/kibana.pid  
Restart=always  
  
[Install]  
WantedBy=default.target  
systemctl enable kibana #开机自启动  
systemctl start kibana #启动kibana
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|小黑屋|HS2V主机综合交流论坛

GMT+8, 2024-12-27 04:56 , Processed in 0.013428 second(s), 2 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表