Sha256: 1e21bce7562dea0a6ab345c168443005f99dac965706242d55210d38f7b03645
Contents?: true
Size: 1.57 KB
Versions: 2
Compression:
Stored size: 1.57 KB
Contents
## 插件制作 ``` % fluent-plugin-generate filter light-core License: Apache-2.0 create Gemfile create README.md create Rakefile create fluent-plugin-light-core.gemspec create lib/fluent/plugin/filter_light_core.rb create test/helper.rb create test/plugin/test_filter_light_core.rb Initialized empty Git repository in /Users/lilin/developer/light/fluent-plugin-light-core/.git/ ``` ## 上传 - 登陆rubygems % gem signin - 发布 1. 删除pkg目录下的所有内容 2. 修改 fluent-plugin-light-core.gemspec 中的 spec.version 3. 提交所有的修改 4. 执行打包发布 $ rake release ## 调试 - 执行fluentd % rm -f sample/*.pos % fluentd -c sample/source.conf -p lib/fluent/plugin ## 添加 sentry 依赖 - 编辑Gemfile gem "sentry-ruby" - 安装依赖 gem install sentry-ruby - 更新依赖版本 bundle install 会修改Gemfile.lock文件 ## 在Linxu上运行 - 进入fluentd容器, 安装依赖 ``` $ yum groupinstall 'Development Tools' $ yum install rubygems ruby-devel ``` - 下载代码, 安装依赖 ``` $ git clone http://git.alphabets.cn/light/fluent-plugin-light-core.git $ cd fluent-plugin-light-core $ gem install bundler:1.17.2 $ bundler install ``` - 运行代码 ``` $ rm -f sample/*.pos && fluentd -c sample/source.conf -p lib/fluent/plugin ``` ## MySQL数据提取 ``` sudo gem install fluent-plugin-sql --no-document sudo gem install mysql2 --no-document mac下mysql2无法安装 报错 ld: library not found for -lssl 可以用下面的命令 sudo gem install mysql2 -- --with-opt-dir="$(brew --prefix openssl)" ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-light-core-0.3.5 | sample/README.md |
fluent-plugin-light-core-0.3.4 | sample/README.md |