Skip to content
/ rtbeat Public

Rtbeat processes HTTP POST data from rxtx and publishes events into elasticsearch, logstash, kafka, redis or directly to log files.

License

Notifications You must be signed in to change notification settings

txn2/rtbeat

Repository files navigation

rxtx data transmission irsync Release Go Report Card Docker Container Image Size Docker Container Layers Docker Container Pulls

Rtbeat

Rtbeat processes HTTP POST data from rxtx and publishes events into elasticsearch, logstash, kafka, redis or directly to log files.

Rtbeat Development

Requirements

Clone

To clone Rtbeat from the git repository, run the following commands:

mkdir -p ${GOPATH}/src/github.com/txn2/rtbeat
git clone https://github.com/txn2/rtbeat ${GOPATH}/src/github.com/txn2/rtbeat

For further development, check out the beat developer guide.

Build

To build the binary for Rtbeat run the command below. This will generate a binary in the same directory with the name rtbeat.

make

Run

To run Rtbeat with debugging output enabled, run:

./rtbeat -c rtbeat.yml -e -d "*"

Test

To test Rtbeat, run the following command:

make testsuite

alternatively:

make unit-tests
make system-tests
make integration-tests
make coverage-report

The test coverage is reported in the folder ./build/coverage/

Update

Each beat has a template for the mapping in elasticsearch and a documentation for the fields which is automatically generated based on fields.yml by running the following command.

make update

Cleanup

To clean up the build directory and generated artifacts, run:

make clean

Packaging

The beat frameworks provides tools to crosscompile and package your beat for different platforms. This requires docker and vendoring as described above. To build packages of the rt beat, run the following command:

make package

This will fetch and create all images required for the build process. The whole process to finish can take several minutes.

Building and Releasing

rtBeat uses GORELEASER to build binaries and Docker containers.

Test Release Steps

Install GORELEASER with brew (MacOS):

brew install goreleaser/tap/goreleaser

Build without releasing:

goreleaser --skip-publish --rm-dist --skip-validate

Release Steps

  • Commit latest changes
  • Tag a version git tag -a v1.0 -m "Version 1.0"
  • Push tag git push origin v2.0
  • Run: GITHUB_TOKEN=$GITHUB_TOKEN goreleaser --rm-dist

Resources

About

Rtbeat processes HTTP POST data from rxtx and publishes events into elasticsearch, logstash, kafka, redis or directly to log files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published