Giter Club home page Giter Club logo

fabricbeat's Introduction

Fabricbeat

Welcome to Fabricbeat.

Ensure that this folder is at the following location: ${GOPATH}/src/github.com/karadalex/fabricbeat

Getting Started with Fabricbeat

Requirements

Init Project

To get running with Fabricbeat and also install the dependencies, run the following command:

make setup

It will create a clean git history for each major step. Note that you can always rewrite the history if you wish before pushing your changes.

To push Fabricbeat in the git repository, run the following commands:

git remote set-url origin https://github.com/karadalex/fabricbeat
git push origin master

For further development, check out the beat developer guide.

Build

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

make

Run

To run Fabricbeat with debugging output enabled, run:

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

Test

To test Fabricbeat, 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 Fabricbeat source code, run the following command:

make fmt

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

make clean

Clone

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

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

For further development, check out the beat developer guide.

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 your beat, run the following command:

make release

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

fabricbeat's People

Watchers

 avatar  avatar  avatar

Forkers

simon0210

fabricbeat's Issues

"make setup" error

I just try to run fabricbeat but I saw this error below.

/opt/gopath/src/github.com/hyperledger/fabricbeat$ make setup
mkdir -p vendor/github.com/elastic
cp -R /opt/gopath/src/github.com/elastic/beats vendor/github.com/elastic/
rm -rf vendor/github.com/elastic/beats/.git vendor/github.com/elastic/beats/x-pack
mkdir -p vendor/github.com/magefile
cp -R /opt/gopath/src/github.com/elastic/beats/vendor/github.com/magefile/mage vendor/github.com/magefile
git init
Reinitialized existing Git repository in /opt/gopath/src/github.com/hyperledger/fabricbeat/.git/
make -f ./vendor/github.com/elastic/beats/libbeat/scripts/Makefile mage ES_BEATS=./vendor/github.com/elastic/beats
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabricbeat'
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabricbeat'
make -f ./vendor/github.com/elastic/beats/libbeat/scripts/Makefile update BEAT_NAME=fabricbeat ES_BEATS=./vendor/github.com/elastic/beats NO_COLLECT=true
make[1]: Entering directory '/opt/gopath/src/github.com/hyperledger/fabricbeat'
Running virtualenv with interpreter /usr/bin/python2
New python executable in /opt/gopath/src/github.com/hyperledger/fabricbeat/build/python-env/bin/python2
Also creating executable in /opt/gopath/src/github.com/hyperledger/fabricbeat/build/python-env/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
2019/09/20 16:22:46 Found Elastic Beats dir at /opt/gopath/src/github.com/hyperledger/fabricbeat/vendor/github.com/elastic/beats
Generated fields.yml for fabricbeat to /opt/gopath/src/github.com/hyperledger/fabricbeat/fields.yml
2019/09/20 16:22:50 Found Elastic Beats dir at /opt/gopath/src/github.com/hyperledger/fabricbeat/vendor/github.com/elastic/beats
Unknown target specified: config
vendor/github.com/elastic/beats/libbeat/scripts/Makefile:316: recipe for target 'config' failed
make[1]: *** [config] Error 2
make[1]: Leaving directory '/opt/gopath/src/github.com/hyperledger/fabricbeat'
Makefile:21: recipe for target 'pre-setup' failed
make: *** [pre-setup] Error 2

what should I do to fix this problem?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.