山水小站

宁静为篱 淡雅为阶 心自有桃源


  • 首页

  • 归档

  • 标签

  • 分类

  • 搜索

elasticsearch7.3 ELK7.3 xpack 单机简单部署

发表于 2019-08-23   |   分类于 ELK   |   暂无评论

一.环境配置

[root@test96 ~]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
[root@test96 ~]# uname -r
3.10.0-957.el7.x86_64

1.修改文件限制

vi /etc/security/limits.conf
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096
* soft memlock unlimited
* hard memlock unlimited

阅读全文 »

logstash grok 收集nginx日志

发表于 2019-08-17   |   分类于 ELK   |   暂无评论

1.日志格式

'"$remote_addr"\t"$http_x_forwarded_for"\t"$remote_user"\t"$time_local"\t"$request"\t"$request_time"\t"$status"\t"$body_bytes_sent"\t"$upstream_addr"\t"$upstream_response_time"\t"$http_referer"\t"$http_user_agent"'

阅读全文 »

nginx 简单测试 return

发表于 2019-08-17   |   分类于 nginx   |   暂无评论
Nginx的return关键字属于HttpRewriteModule模块:

语法:return http状态码
默认值:无
上下文:server,location,if
该指令将结束执行直接返回http状态码到客户端.

支持的http状态码:200, 204, 400, 402-406, 408, 410, 411, 413, 416 , 500-504,还有非标准的444状态码.

阅读全文 »

晴天 雨天

发表于 2019-08-05   |   分类于 生活有意思   |   暂无评论

mark
mark

python 实时监控mysql慢查询日志 发送信息到钉钉机器人

发表于 2019-08-03   |   分类于 Python   |   暂无评论

2019-08-03 08:30:26 星期六

1.mysql配置

# cat /etc/redhat-release 
CentOS release 6.5 (Final)

# mysql -V
mysql  Ver 14.14 Distrib 5.6.17, for linux-glibc2.5 (x86_64) using  EditLine wrapper

mysql.cnf配置
slow_query_log=1
long_query_time=1
slow_query_log_file=/usr/local/mysql/data/slow-query.log

阅读全文 »

1...323334353637383940
山水小站

山水小站

惟山水与美食,此生不可辜负

198 文章
32 分类
0 标签
微博 知乎 豆瓣 mail
© 2026 山水小站
平安
顺遂
 |  鲁ICP备19029109号-1  |  鲁公网安备 37068202000213号