上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 34 下一页
摘要: 初始化集群(在第一个管理节点操作) docker swarm init --advertise-addr <first_manager_node_ip> 部分输出信息: Swarm initialized: current node (mo2p7vnjhzg68g6wzejozdomo) is no 阅读全文
posted @ 2021-08-20 13:56 Varden 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 基本架构 Ingress Network Ingress + LB 阅读全文
posted @ 2021-08-20 11:42 Varden 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 安装工具 # Ubuntu apt-get install sysstat iotop # CentOS yum install sysstat iotop iostat iostat -x 1 10 这个只能计算总的IO,没有单独某个进程的。 iotop 这个可以针对单个进程进行查看。 iotop 阅读全文
posted @ 2021-08-20 11:32 Varden 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: 安装 apt-get install supervisor 配置文件:/etc/supervisor/conf.d/http_server.conf [inet_http_server] port=0.0.0.0:9001 username=admin password=admin 配置文件:/et 阅读全文
posted @ 2021-08-20 11:23 Varden 阅读(67) 评论(0) 推荐(0) 编辑
摘要: apt-get remove docker docker-engine docker.io apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://d 阅读全文
posted @ 2021-08-20 11:12 Varden 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 基础镜像选择 alpine(musl libc) slim(debian + glibc) scratch(null) busybox:glibc Go FROM golang:alpine COPY hello.go . RUN go build hello.go FROM alpine COPY 阅读全文
posted @ 2021-08-20 11:05 Varden 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 配置文件 $ mkdir /var/lib/registry $ docker run -d \ --restart=always \ -p 5000:5000 \ -e REGISTRY_HTTP_ADDR=0.0.0.0:5000 \ --name registry \ -v /var/lib/ 阅读全文
posted @ 2021-08-20 10:55 Varden 阅读(1274) 评论(0) 推荐(0) 编辑
摘要: 在Linux操作上,docker守护进程配置文件的默认位置是/etc/docker/daemon.json。可以通过–config-file标志指定非默认位置。下面是Linux操作系统上允许的配置选项完整示例: { “authorization-plugins”: [], “data-root”: 阅读全文
posted @ 2021-08-20 10:51 Varden 阅读(2164) 评论(0) 推荐(0) 编辑
摘要: 1、设置安装源 apt-get -y install --no-install-recommends apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://apt.dockerpr 阅读全文
posted @ 2021-08-20 10:40 Varden 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 1. 安装或升级 apt-get install -y rsyslog 2. 配置文件 /etc/rsyslog.conf 3. 日志写入本地文件 3.1 Rsyslog默认是将日志存储在本地文件,所以不需要修改配置文件 3.2 测试 3.2.1 开个shell执行命令tail -f /var/lo 阅读全文
posted @ 2021-08-20 10:25 Varden 阅读(1212) 评论(0) 推荐(0) 编辑
摘要: Lucene查询语法 Kibana查询语言基于Lucene查询语法。下面是一些提示: 为了执行一个文本搜索,可以简单的输入一个文本字符串。例如,如果你想搜索web服务器的日志,你可以输入关键字"safari",这样你就可以搜索到所有有关"safari"的字段。 为了搜索一个特定字段的特定值,可以用字 阅读全文
posted @ 2021-08-20 10:20 Varden 阅读(1331) 评论(0) 推荐(0) 编辑
摘要: 汉化文件路径 /usr/share/kibana/x-pack/plugins/translations/translations/zh-CN.json 在kibana.yml配置文件中添加以下选项 i18n.locale: "zh-CN" 阅读全文
posted @ 2021-08-20 10:09 Varden 阅读(288) 评论(0) 推荐(0) 编辑
摘要: USERNAME [a-zA-Z0-9._-]+ USER %{USERNAME} INT (?:[+-]?(?:[0-9]+)) BASE10NUM (?<![0-9.+-])(?>[+-]?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+))) NUMBER (?:% 阅读全文
posted @ 2021-08-20 10:06 Varden 阅读(574) 评论(0) 推荐(0) 编辑
摘要: /var/log/syslog 日志信息: Oct 18 22:53:08 C1-M620-16 systemd[31255]: Listening on GnuPG network certificate management daemon. grok表达式: ^%{SYSLOGBASE} %{G 阅读全文
posted @ 2021-08-20 09:58 Varden 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 配置文件:/etc/logstash/conf.d/logstash-indexer.conf input { #file { # path => [ "/var/log/*.log", "/var/log/messages", "/var/log/syslog" ] # type => "sysl 阅读全文
posted @ 2021-08-20 09:22 Varden 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 1.一个例子 项目日志生成在某个路径,如/var/log/project,里面有warn,info,error目录,分别对应不同级别的日志,需要采集这些日志。 需要采集特定格式的日志,如: [2018-11-24 08:33:43,253][ERROR][http-nio-8080-exec-4][ 阅读全文
posted @ 2021-08-20 09:15 Varden 阅读(1545) 评论(0) 推荐(0) 编辑
摘要: 安装 wget -c https://packages.elastic.co/curator/5/debian/pool/main/e/elasticsearch-curator/elasticsearch-curator_5.8.1_amd64.deb sudo dpkg -i elasticse 阅读全文
posted @ 2021-08-20 09:03 Varden 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 安装nginx apt-get install nginx 使用openssl创建一个管理员用户,例如“admin”,可以访问Kibana Web界面 echo "admin:`openssl passwd -apr1`" | tee -a /etc/nginx/conf.d/htpasswd.us 阅读全文
posted @ 2021-08-20 08:59 Varden 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 配置文件及目录说明 /etc/elasticsearch/log4j2.properties /etc/elasticsearch/elasticsearch.yml /etc/elasticsearch/jvm.options /etc/default/elasticsearch /usr/lib 阅读全文
posted @ 2021-08-20 08:47 Varden 阅读(518) 评论(0) 推荐(0) 编辑
摘要: shell脚本内容如下: #!/bin/bash # # 脚本名:clean.sh # 功能:用于清理日志数据 # 作者:Varden CONFIG_FILE=/home/scripts/config.yml ACTION_FILE=/home/scripts/action_file.yml /us 阅读全文
posted @ 2021-08-20 08:10 Varden 阅读(271) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 34 下一页