Skip to content

Commit

Permalink
Add developer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Ngo committed Oct 23, 2019
1 parent a6101c9 commit 2747f8c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions DEVELOPER.md
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")

0 comments on commit 2747f8c

Please sign in to comment.