-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Timothy Ngo
committed
Oct 23, 2019
1 parent
a6101c9
commit 2747f8c
Showing
1 changed file
with
15 additions
and
0 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,15 @@ | ||
# Developing the plugin | ||
|
||
## Getting started | ||
|
||
* Install go: `brew install go` | ||
|
||
## Developing | ||
|
||
* Write tests and production code | ||
* Update the version in version.go | ||
* Run tests: `go test` | ||
* Build the plugin: `make all` | ||
* Run Fluent Bit with the plugin using the template config file: `FILE_PATH=/usr/local/var/log/test.log API_KEY=(your-api-key) BUFFER_SIZE= MAX_RECORDS= fluent-bit -c ./fluent-bit.conf -e ./out_newrelic.so` | ||
* Cause a change that you've configured Fluent Bit to pick up: (`echo "FluentBitTest" >> /usr/local/var/log/test.log`) | ||
* Look in `https://one.newrelic.com/launcher/logger.log-launcher` for your log message ("FluentBitTest") |