searchusermenu
  • 发布文章
  • 消息中心
点赞
收藏
评论
分享
原创

ELK Stack 监控运维

2022-12-23 06:24:19
24
0

组件

Filebeat

-path.logs 指定日志路径,通过日志中 monitoring 分析采集概况。

可以 filebeat.yml 配置文件中调整日志级别为 debug,如:logging.level: info,把采集结果打印到日志中分析。

 

Logstash

Monitoring Logstash with APIs

 

Elasticsearch

troubleshooting

_cat API

curl -XGET 'http://localhost:9200/_cat/indices/*?s=index:desc'
_cat/count
_cat/health
_cat/nodes
_cat/master
_cat/recovery
_cat/shards
_cat/plugins

_cluster API

curl -XGET http://localhost:9200/_cluster/health?level=indices&pretty

_nodes API

curl -XGET 'http://localhost:9200/_nodes/stats/indices?pretty'
# 热线程
curl -XGET http://localhost:9200/_nodes/hot_threads

慢日志

index_indexing_slowlog
index_search_slowlog

系统

I/O 信息

iostat -xd 1
pidstat -l -d -p $pid 1 5

内存

top 
free
vmstat
sar -B
sar -W
pidstat -l -r -p $pid 1 5

CPU

top
vmstat
mpstat

网络连接和流量

sar -n DEV 1
netstat -anp
ifconfig

 

0条评论
0 / 1000
朱****斌
10文章数
0粉丝数
朱****斌
10 文章 | 0 粉丝
原创

ELK Stack 监控运维

2022-12-23 06:24:19
24
0

组件

Filebeat

-path.logs 指定日志路径,通过日志中 monitoring 分析采集概况。

可以 filebeat.yml 配置文件中调整日志级别为 debug,如:logging.level: info,把采集结果打印到日志中分析。

 

Logstash

Monitoring Logstash with APIs

 

Elasticsearch

troubleshooting

_cat API

curl -XGET 'http://localhost:9200/_cat/indices/*?s=index:desc'
_cat/count
_cat/health
_cat/nodes
_cat/master
_cat/recovery
_cat/shards
_cat/plugins

_cluster API

curl -XGET http://localhost:9200/_cluster/health?level=indices&pretty

_nodes API

curl -XGET 'http://localhost:9200/_nodes/stats/indices?pretty'
# 热线程
curl -XGET http://localhost:9200/_nodes/hot_threads

慢日志

index_indexing_slowlog
index_search_slowlog

系统

I/O 信息

iostat -xd 1
pidstat -l -d -p $pid 1 5

内存

top 
free
vmstat
sar -B
sar -W
pidstat -l -r -p $pid 1 5

CPU

top
vmstat
mpstat

网络连接和流量

sar -n DEV 1
netstat -anp
ifconfig

 

文章来自个人专栏
文章 | 订阅
0条评论
0 / 1000
请输入你的评论
0
0