-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move installing-fluentd-readme to be .md file and orgenize commands
- Loading branch information
Showing
9 changed files
with
122 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fluentd/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
# Installing custom fluentd | ||
|
||
The below captures the steps to clone fluentd and other fluentd plugins, do custom build of a local gem file, and get that installed in your hostmachine | ||
|
||
> note: as pre-req you need ruby version 2.7 installed (e.g. instructions for [centos](https://tecadmin.net/install-ruby-latest-stable-centos/)) | ||
##Steps | ||
1. git clone | ||
`git clone https://github.com/pmoogi-redhat/fluentd.git` | ||
> note: assuming you have forked the upstream fluentd into your own remote repo | ||
2. Go to your repo | ||
`cd fluentd` | ||
3. Execute gem build | ||
`gem build -V fluentd.gemspec` | ||
4. Execute bundler | ||
`bundler install` | ||
> note: ass needed execute `gem install bundler:2.2.7` to update version of bundler | ||
5. Execute gem install | ||
`gem install -V -l fluentd-1.12.0.gem` | ||
|
||
## How to customize fluentd or plugins | ||
For example change tail code: | ||
`vi in_tail.rb` | ||
|
||
The changed plugin files can be reflected in the installed directory by copying update file into the below default installed directories | ||
`cp /path/to/fluentd/lib/fluent/plugin/in_tail.rb /usr/local/share/gems/gems/fluentd-1.12.0/lib/fluent/plugin/.` | ||
OR do a fresh gem build as described from step 3 to create a new installation | ||
> Note: Step 5 actually copies plugin .rb files into `/usr/local/share/gems/gems/fluentd-1.12.0/lib/fluent/plugin/.` directory | ||
Similarly, other plugins can be changed and installed by hacking the above step | ||
|
||
## How to run fluentd on your local machine | ||
To execute fluentd on your local machine with the plugins and code changes, execute: | ||
|
||
`fluentd -c fluent.conf` | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.