https://avatars.githubusercontent.com/u/6274534

Logstash 使用记录

Filters Ruby redis 安装依赖 1 2 cd /opt/logstash env GEM_HOME=vendor/bundle/jruby/1.9 GEM_PATH="" java -jar vendor/jruby-complete-1.7.11.jar -S gem install redis 示例 1 2 3 4 5 6 7 filter {...ruby {init => 'require "redis"; $rc = Redis.new(path: "/var/run/redis/redis.sock", db: 0)'code => 'event.set("enriched_field", $rc.get(event.get("key_field")))'}} 1 2 3 4 5 6 7 filter {...ruby {init => 'require "redis"; $redis = Redis.new(host: "127.0.0.1", port: 6379, db: 5)'code => 'event.set("enriched_field", $redis.get(event.get("key_field")))'}} 1

Filebeat 使用记录

调试 1 2 3 4 5 filebeat --path.config . --path.data data --path.logs logs --httpprof 0.0.0.0:6060 -c filebeat.yml run -e go tool pprof http://0.0.0.0:6060/debug/pprof/profile # 在 go pprof 中输入 top10 查看前10资源占用项

LDAP

概念 简称 dn - Distinguished Name 唯一标志名,类似于linux文件系统中的绝对路径,每个条目都有一个标识名,例如uid=admin,ou=manager,dc

配置 PHP 主动拉取 GitLab 提交

参考 环境变量 https://docs.gitlab.com/ce/ci/variables/predefined_variables.html 使用 CI/CD php 自动拉取 依赖 m4tthumphrey/php-gitlab-api 代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

Git Submodule 使用

Clone Submodule 1 git clone --recursive <url> 更新 submodule 方式一, 在仓库根目录执行: 1 git submodule foreach git pull 方式二, 进入对应的 submodules 主目录,执行: 1 git pull