ELK部署-kibana安装(五)
一、介绍
Kibana是一个针对Elasticsearch的开源分析及可视化平台,用来搜索、查看交互存储在Elasticsearch索引中的数据。使用Kibana,可以通过各种图表进行高级数据分析及展示。
Kibana让海量数据更容易理解。它操作简单,基于浏览器的用户界面可以快速创建仪表板(dashboard)实时显示Elasticsearch查询动态。
二、安装
1、下载
wget https://artifacts.elastic.co/downloads/kibana/kibana-7.16.2-linux-x86_64.tar.gz
2、解压文件
tar xf kibana-7.16.2-linux-x86_64.tar.gz -C /data/env/
ln -s /data/env/kibana-7.16.2-linux-x86_64 /data/soft/kibana
3、修改权限
chown -R www:www /data/env/kibana-7.16.2-linux-x86_64
4、修改配置文件
vim data/soft/kibana/config/kibana.yml
server.port: 5601
server.host: "192.168.30.132"
elasticsearch.hosts: ["http://127.0.0.1:9200"]
5、创建启动文件
vim /usr/lib/systemd/system/kibana.service
[Unit]
Description=Kibana
[Service]
Type=simple
User=www
Group=www
# Load env vars from /etc/default/ and /etc/sysconfig/ if they exist.
# Prefixing the path with '-' makes it try to load, but if the file doesn't
# exist, it continues onward.
#EnvironmentFile=-/etc/default/kibana
#EnvironmentFile=-/etc/sysconfig/kibana
ExecStart=/data/soft/kibana/bin/kibana "-c /data/soft/kibana/config/kibana.yml" "-l /data/soft/kibana/kibana.log"
#ExecStart=/data/soft/kibana/bin/kibana "-c /data/soft/kibana/config/kibana.yml"
Restart=always
WorkingDirectory=/
[Install]
WantedBy=multi-user.target
启动
systemctl start kibana
[root@bogon soft]# systemctl status kibana
● kibana.service - Kibana
Loaded: loaded (/usr/lib/systemd/system/kibana.service; disabled; vendor preset: disabled)
Active: active (running) since 一 2022-01-10 15:44:50 CST; 3h 7min ago
Main PID: 38807 (node)
CGroup: /system.slice/kibana.service
└─38807 /data/soft/kibana/bin/../node/bin/node /data/soft/kibana/bin/../src/cli/dist -c /data/soft/kibana/config/kibana.yml -l /data/soft/kibana/kibana.log
1月 10 18:52:15 bogon kibana[38807]: {"type":"log","@timestamp":"2022-01-10T18:52:15+08:00","tags":["info","elasticsearch","deprecation"],"pid":38807,"message":"Elasticsearch deprecation: 299 Elas...ithout authenti
1月 10 18:52:15 bogon kibana[38807]: ins(ctx._source.task.taskType)) {\\n ctx._source.task.status = \\\"unrecognized\\\";\\n } else {\\n ctx.op = \\\"noop\\\";\\n }\",\"lang\":\"pa...1-10T10:52:45.4
1月 10 18:52:15 bogon kibana[38807]: ons\",\"alerting:monitoring_alert_thread_pool_write_rejections\",\"alerting:monitoring_alert_jvm_memory_usage\",\"alerting:monitoring_alert_nodes_changed\",\"a...onitoring_alert
1月 10 18:52:15 bogon kibana[38807]: "alerting:metrics.alert.inventory.threshold\":3,\"alerting:metrics.alert.threshold\":3,\"alerting:monitoring_alert_cluster_health\":3,\"alerting:monitoring_ale...\":3,\"alerting
1月 10 18:52:15 bogon kibana[38807]: {"type":"log","@timestamp":"2022-01-10T18:52:15+08:00","tags":["info","elasticsearch","deprecation"],"pid":38807,"message":"Elasticsearch deprecation: 299 Elas...ithout authenti
1月 10 18:52:15 bogon kibana[38807]: :{\"task.taskType\":\"lens_telemetry\"}},{\"term\":{\"task.taskType\":\"endpoint:user-artifact-packager\"}},{\"term\":{\"task.taskType\":\"security:endpoint-di...ty:telemetry-li
1月 10 18:52:15 bogon kibana[38807]: ead_pool_search_rejections\"}},{\"term\":{\"task.taskType\":\"alerting:monitoring_alert_thread_pool_write_rejections\"}},{\"term\":{\"task.taskType\":\"alertin...erm\":{\"task.t
1月 10 18:52:15 bogon kibana[38807]: {"type":"log","@timestamp":"2022-01-10T18:52:15+08:00","tags":["info","elasticsearch","deprecation"],"pid":38807,"message":"Elasticsearch deprecation: 299 Elas...ithout authenti
1月 10 18:52:15 bogon kibana[38807]: {"type":"log","@timestamp":"2022-01-10T18:52:15+08:00","tags":["info","elasticsearch","deprecation"],"pid":38807,"message":"Elasticsearch deprecation: 299 Elas...ithout authenti
1月 10 18:52:15 bogon kibana[38807]: {"type":"log","@timestamp":"2022-01-10T18:52:15+08:00","tags":["info","elasticsearch","deprecation"],"pid":38807,"message":"Elasticsearch deprecation: 299 Elas...ithout authenti
Hint: Some lines were ellipsized, use -l to show in full.
6、访问kibana
三、配置索引
1、选择“Stack Management”
2、选择索引模式("Index Patterns")
3、创建索引,填写下面步骤,然后点击创建
正文到此结束
评论
登录后才能发表评论 登录/注册
0评论